Merge pull request #1239 from zilongshanren/fix-issue-4522

remove debug logs
This commit is contained in:
Wang Nan
2016-10-25 17:17:40 +08:00
committed by GitHub
+3 -3
View File
@@ -176,7 +176,7 @@ var LoadingItems = function (pipeline, urlList, onProgress, onComplete) {
* }
*/
this.onProgress = onProgress;
/**
* !#en This is a callback which will be invoked while all items is completed,
* You can pass the callback function in LoadingItems.create or set it later.
@@ -671,7 +671,7 @@ JS.mixin(LoadingItems.prototype, CallbacksInvoker.prototype, {
LoadingItems.finishDep(id);
if (this.onProgress) {
var dep = _queueDeps[item.queueId];
console.log((dep ? dep.completed.length : this.completedCount) + ' / ' + (dep ? dep.deps.length : this.totalCount));
// console.log((dep ? dep.completed.length : this.completedCount) + ' / ' + (dep ? dep.deps.length : this.totalCount));
this.onProgress(dep ? dep.completed.length : this.completedCount, dep ? dep.deps.length : this.totalCount, item);
}
@@ -717,4 +717,4 @@ JS.mixin(LoadingItems.prototype, CallbacksInvoker.prototype, {
}
});
cc.LoadingItems = module.exports = LoadingItems;
cc.LoadingItems = module.exports = LoadingItems;