mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge branch 'master' into next
This commit is contained in:
@@ -49,7 +49,7 @@ function loadJSON (item, callback) {
|
||||
}
|
||||
|
||||
function loadImage (item, callback) {
|
||||
var loadByDeserializedAsset = item._owner instanceof cc.Asset;
|
||||
var loadByDeserializedAsset = cc.Class.isInstanceOf(item._owner, cc.Asset);
|
||||
if (loadByDeserializedAsset) {
|
||||
// already has cc.Asset
|
||||
return null;
|
||||
@@ -74,7 +74,7 @@ function loadImage (item, callback) {
|
||||
// If audio is loaded by url directly, than this loader will wrap it into a new cc.AudioClip object.
|
||||
// If audio is loaded by deserialized AudioClip, than this loader will be skipped.
|
||||
function loadAudioAsAsset (item, callback) {
|
||||
var loadByDeserializedAsset = item._owner instanceof cc.Asset;
|
||||
var loadByDeserializedAsset = cc.Class.isInstanceOf(item._owner, cc.Asset);
|
||||
if (loadByDeserializedAsset) {
|
||||
// already has cc.Asset
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user