mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
@@ -287,6 +287,9 @@ JS.mixin(CCLoader.prototype, {
|
||||
|
||||
_resources: resources,
|
||||
_getResUuid: function (url, type, quiet) {
|
||||
if (!url) {
|
||||
return null;
|
||||
}
|
||||
// Ignore parameter
|
||||
var index = url.indexOf('?');
|
||||
if (index !== -1)
|
||||
|
||||
@@ -270,8 +270,13 @@ var LoadingItems = function (pipeline, urlList, onProgress, onComplete) {
|
||||
this.active = false;
|
||||
}
|
||||
|
||||
if (urlList && urlList.length > 0) {
|
||||
this.append(urlList);
|
||||
if (urlList) {
|
||||
if (urlList.length > 0) {
|
||||
this.append(urlList);
|
||||
}
|
||||
else {
|
||||
this.allComplete();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user