mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1225 from pandamicro/v1.3
Fix loader issue that mistaken remove item when multiple queue is in progress
This commit is contained in:
@@ -194,7 +194,9 @@ JS.mixin(CCLoader.prototype, {
|
||||
|
||||
if (CC_EDITOR) {
|
||||
for (var id in self._cache) {
|
||||
self.removeItem(id);
|
||||
if (self._cache[id].complete) {
|
||||
self.removeItem(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
items.destroy();
|
||||
|
||||
Reference in New Issue
Block a user