From 980686ab7594004e931a397f00b7f2df1e4271da Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 14 Jun 2012 10:08:16 +0200 Subject: [PATCH] MINOR Limiting console.log() output to explicit enabling through window.debug to avoid failing IE --- admin/javascript/LeftAndMain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index b07fab1bc..3bf0613ee 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -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();