Loader only allow access to completed item

This commit is contained in:
pandamicro
2016-12-09 17:20:15 +08:00
parent 397ea7c1f0
commit dfbc7f0070
+1 -1
View File
@@ -438,7 +438,7 @@ JS.mixin(CCLoader.prototype, {
var uuid = this._getResUuid(url);
item = this._cache[uuid];
}
return item ? item.content : null;
return (item && item.complete) ? item.content : null;
},
/**