Skip to content

Commit 8ed5dd2

Browse files
author
Lanny McNie
committed
Fixed SpriteSheetLoader to work with JSONP (thanks @jonlucas)
1 parent ecc2c3b commit 8ed5dd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/preloadjs/loaders/SpriteSheetLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ this.createjs = this.createjs || {};
9999
// protected methods
100100
p._createRequest = function() {
101101
var callback = this._item.callback;
102-
if (callback != null && callback instanceof Function) {
102+
if (callback != null) {
103103
this._request = new createjs.JSONPLoader(this._item);
104104
} else {
105105
this._request = new createjs.JSONLoader(this._item);

0 commit comments

Comments
 (0)