mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fixed CCLoader
This commit is contained in:
@@ -194,8 +194,9 @@ JS.mixin(CCLoader.prototype, {
|
||||
items.destroy();
|
||||
|
||||
if (CC_EDITOR) {
|
||||
// raw assets are not cached in the CC_EDITOR fix fireball/issues/4158
|
||||
self.clear();
|
||||
for (var i = 0; i < resources.length; i++) {
|
||||
self.removeItem(resources[i].id || resources[i]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user