mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
Removed console.log statements
This commit is contained in:
parent
fb0a379959
commit
88ca18005e
@ -30,18 +30,18 @@ function onAfterUpdate(callback) {
|
||||
}
|
||||
|
||||
function updateWidgets() {
|
||||
console.log('Updating widgets BEGIN - ', widgetUpdateQueue ? widgetUpdateQueue.length : 0);
|
||||
// console.log('Updating widgets BEGIN - ', widgetUpdateQueue ? widgetUpdateQueue.length : 0);
|
||||
try {
|
||||
if (widgetUpdateQueue) {
|
||||
for (var i=0; i<widgetUpdateQueue.length; i++) {
|
||||
var widget = widgetUpdateQueue[i];
|
||||
widget.__updateQueued = false;
|
||||
console.log('Updating widget: ' + widget.id);
|
||||
// console.log('Updating widget: ' + widget.id);
|
||||
widget.update();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
console.log('Updating widgets END');
|
||||
// console.log('Updating widgets END');
|
||||
widgetUpdateQueue = null;
|
||||
updatesScheduled = false;
|
||||
batchUpdateStarted = false;
|
||||
@ -57,9 +57,9 @@ function batchUpdate(func) {
|
||||
var isOuter = updatesScheduled === false && batchUpdateStarted === false;
|
||||
batchUpdateStarted = true;
|
||||
|
||||
if (isOuter) {
|
||||
console.log('Batch update BEGIN');
|
||||
}
|
||||
// if (isOuter) {
|
||||
// console.log('Batch update BEGIN');
|
||||
// }
|
||||
|
||||
try {
|
||||
func();
|
||||
@ -80,7 +80,7 @@ function queueWidgetUpdate(widget) {
|
||||
|
||||
scheduleUpdates();
|
||||
|
||||
console.log('Queuing widget update: ', widget.id);
|
||||
// console.log('Queuing widget update: ', widget.id);
|
||||
|
||||
if (widgetUpdateQueue) {
|
||||
widgetUpdateQueue.push(widget);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user