Merge pull request #383 from pandamicro/master

Restore default value instead of delete _uuid
This commit is contained in:
pandamicro
2016-02-25 17:52:07 +08:00
+2 -2
View File
@@ -215,7 +215,7 @@ var AssetLibrary = {
if (CC_EDITOR || isScene(asset)) {
Loader.removeItem(randomUuid);
}
delete asset._uuid;
asset._uuid = '';
callback(error, asset);
});
}
@@ -223,7 +223,7 @@ var AssetLibrary = {
if (CC_EDITOR || isScene(asset)) {
Loader.removeItem(randomUuid);
}
delete asset._uuid;
asset._uuid = '';
callback(error, asset);
}
});