Skip to content

Commit 4817c57

Browse files
author
Lanny McNie
committed
Removed legacy code in JSON loaders.
1 parent 8ed5dd2 commit 4817c57

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/preloadjs/loaders/JSONLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ this.createjs = this.createjs || {};
6767
* @static
6868
*/
6969
s.canLoadItem = function (item) {
70-
return item.type == createjs.AbstractLoader.JSON && !item._loadAsJSONP;
70+
return item.type == createjs.AbstractLoader.JSON;
7171
};
7272

7373
// protected methods

src/preloadjs/loaders/JSONPLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ this.createjs = this.createjs || {};
7272
* @static
7373
*/
7474
s.canLoadItem = function (item) {
75-
return item.type == createjs.AbstractLoader.JSONP || item._loadAsJSONP;
75+
return item.type == createjs.AbstractLoader.JSONP;
7676
};
7777

7878
// public methods
@@ -82,7 +82,7 @@ this.createjs = this.createjs || {};
8282
};
8383

8484
/**
85-
* Loads the JSONp file. Because of the unique loading needs of jsonP
85+
* Loads the JSONp file. Because of the unique loading needs of JSONp
8686
* we don't use the AbstractLoader.load() method.
8787
*
8888
* @method load

0 commit comments

Comments
 (0)