From 7b2806a51baad629b8b92cfc5101f486687f9a08 Mon Sep 17 00:00:00 2001 From: VisualSJ Date: Thu, 8 Dec 2016 15:13:29 +0800 Subject: [PATCH] remove getAssetUrl --- cocos2d/core/load-pipeline/pipeline.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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;