Permalink
Browse files

Changed LoadQueue Array checks from instanceof to Array.isArray()

  • Loading branch information...
lannymcnie committed Oct 16, 2015
1 parent 107154d commit 7ba9f7edf81c339fcbfd6198ce1cbf9fb6d04a0e
Showing with 4 additions and 3 deletions.
  1. +2 −1 VERSIONS.txt
  2. +2 −2 src/preloadjs/LoadQueue.js
@@ -1,6 +1,7 @@
Version NEXT [not yet released]
****************************************************************************************************
* Fixed SpriteSheetLoader's JSONP loading
- Fixed SpriteSheetLoader's JSONP loading
- Changed LoadQueue Array checks from instanceof to Array.isArray()
Version 0.6.1 [May 21, 2015]
@@ -892,7 +892,7 @@ this.createjs = this.createjs || {};
p.remove = function (idsOrUrls) {
var args = null;
if (idsOrUrls && !(idsOrUrls instanceof Array)) {
if (idsOrUrls && !Array.isArray(idsOrUrls)) {
args = [idsOrUrls];
} else if (idsOrUrls) {
args = idsOrUrls;
@@ -1126,7 +1126,7 @@ this.createjs = this.createjs || {};
var path = null;
// Array-based list of items
if (manifest instanceof Array) {
if (Array.isArray(manifest)) {
if (manifest.length == 0) {
var event = new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY");
this._sendError(event);

0 comments on commit 7ba9f7e

Please sign in to comment.