mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1239 from zilongshanren/fix-issue-4522
remove debug logs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user