remove getAssetUrl

This commit is contained in:
VisualSJ
2016-12-08 15:13:29 +08:00
parent 9988c1657f
commit 7b2806a51b
+5 -6
View File
@@ -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;
cc.Pipeline = module.exports = Pipeline;