MINOR Limiting console.log() output to explicit enabling through window.debug to avoid failing IE

This commit is contained in:
Ingo Schommer 2012-06-14 10:08:16 +02:00
parent 21e7ec61f4
commit 980686ab75

View File

@ -743,7 +743,8 @@ jQuery.noConflict();
this.redraw();
},
onremove: function() {
console.log('saving', this.data('url'), this);
if(window.debug) console.log('saving', this.data('url'), this);
// Save the HTML state at the last possible moment.
// Don't store the DOM to avoid memory leaks.
if(!this.data('deferredNoCache')) window._panelDeferredCache[this.data('url')] = this.html();