Merge pull request #1575 from pandamicro/master

Fix unit test cases
This commit is contained in:
Jare Guo
2017-04-11 10:04:05 +08:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
+3
View File
@@ -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)
+7 -2
View File
@@ -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();
}
}
};