Skip to content

Commit 625394a

Browse files
committed
Don't reset the callbacks unless xhrLoader is set
1 parent 9832bef commit 625394a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/loader/File.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,12 @@ var File = new Class({
242242
*/
243243
resetXHR: function ()
244244
{
245-
this.xhrLoader.onload = undefined;
246-
this.xhrLoader.onerror = undefined;
247-
this.xhrLoader.onprogress = undefined;
245+
if (this.xhrLoader)
246+
{
247+
this.xhrLoader.onload = undefined;
248+
this.xhrLoader.onerror = undefined;
249+
this.xhrLoader.onprogress = undefined;
250+
}
248251
},
249252

250253
/**

0 commit comments

Comments
 (0)