diff --git a/cocos2d/core/load-pipeline/pipeline.js b/cocos2d/core/load-pipeline/pipeline.js index 5cf34ea064..b089e8852a 100644 --- a/cocos2d/core/load-pipeline/pipeline.js +++ b/cocos2d/core/load-pipeline/pipeline.js @@ -72,7 +72,7 @@ function syncFlow (item) { var pipeId = this.id; var itemState = item.states[pipeId]; var next = this.next; - + if (item.error || itemState === ItemState.WORKING || itemState === ItemState.ERROR) { return; } @@ -374,10 +374,9 @@ JS.mixin(Pipeline.prototype, { if (!item) return item; - if (item.alias) { - url = cc.AssetLibrary._getAssetUrl(item.alias); - item = this._cache[url]; - } + // downloader.js downloadUuid + if (item.alias) + item = this._cache[item.alias]; return item; }, @@ -421,4 +420,4 @@ JS.mixin(Pipeline.prototype, { } }); -cc.Pipeline = module.exports = Pipeline; \ No newline at end of file +cc.Pipeline = module.exports = Pipeline;