Check method exists before calling

This commit is contained in:
Nibbler999 2013-03-21 15:27:30 +01:00
parent ea77f37ef2
commit 5066b10d41

View file

@ -46,7 +46,7 @@ PIXI.SpriteSheetLoader.prototype.load = function()
}
this.ajaxRequest.open("GET", this.url, true)
this.ajaxRequest.overrideMimeType("application/json");
if (this.ajaxRequest.overrideMimeType) this.ajaxRequest.overrideMimeType("application/json");
this.ajaxRequest.send(null)
}