Skip to content

Commit

Permalink
Fixed XHRLoader not loading properly in Cordova.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Start committed Jun 17, 2014
1 parent 8dbe6e3 commit 89179af
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "preloadjs",
"version": "0.4.2",
"version": "0.4.3",
"main": "lib/preloadjs.min.js",
"ignore": [
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PreloadJS",
"version": "0.4.2",
"version": "0.4.3",
"description": "PreloadJS Docs",
"url": "http://www.createjs.com/#!/PreloadJS",
"logo": "assets/docs-icon-PreloadJS.png",
Expand Down
Binary file modified docs/PreloadJS_docs.zip
Binary file not shown.
9 changes: 5 additions & 4 deletions lib/preloadjs.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ this.createjs = this.createjs||{};
* @type String
* @static
**/
s.version = /*version*/"0.4.2"; // injected by build process
s.version = /*version*/"0.4.3"; // injected by build process

/**
* The build date for this release in UTC format.
* @property buildDate
* @type String
* @static
**/
s.buildDate = /*date*/"Thu, 12 Jun 2014 14:31:43 GMT"; // injected by build process
s.buildDate = /*date*/"Tue, 17 Jun 2014 19:21:31 GMT"; // injected by build process

})();
/*
Expand Down Expand Up @@ -3969,8 +3969,9 @@ this.createjs = this.createjs || {};

switch (status) {
case 404: // Not Found
case 0: // Not Loaded
return false;
return false
case 0: // Not Loaded - in some cases could actually be loaded (like Cordova)
return !!this._getResponse();
}
return true;
};
Expand Down
2 changes: 1 addition & 1 deletion lib/preloadjs.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/preloadjs/XHRLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,9 @@ this.createjs = this.createjs || {};

switch (status) {
case 404: // Not Found
case 0: // Not Loaded
return false;
return false
case 0: // Not Loaded - in some cases could actually be loaded (like Cordova)
return !!this._getResponse();
}
return true;
};
Expand Down
4 changes: 2 additions & 2 deletions src/preloadjs/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ this.createjs = this.createjs||{};
* @type String
* @static
**/
s.version = /*version*/"0.4.2"; // injected by build process
s.version = /*version*/"0.4.3"; // injected by build process

/**
* The build date for this release in UTC format.
* @property buildDate
* @type String
* @static
**/
s.buildDate = /*date*/"Thu, 12 Jun 2014 14:31:43 GMT"; // injected by build process
s.buildDate = /*date*/"Tue, 17 Jun 2014 19:21:31 GMT"; // injected by build process

})();

0 comments on commit 89179af

Please sign in to comment.