Skip to content
This repository
Browse code

MINOR Limiting console.log() output to explicit enabling through wind…

…ow.debug to avoid failing IE
  • Loading branch information...
commit 980686ab7594004e931a397f00b7f2df1e4271da 1 parent 21e7ec6
Ingo Schommer authored June 14, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  admin/javascript/LeftAndMain.js
3  admin/javascript/LeftAndMain.js
@@ -743,7 +743,8 @@ jQuery.noConflict();
743 743
 				this.redraw();
744 744
 			},
745 745
 			onremove: function() {
746  
-				console.log('saving', this.data('url'), this);
  746
+				if(window.debug) console.log('saving', this.data('url'), this);
  747
+				
747 748
 				// Save the HTML state at the last possible moment.
748 749
 				// Don't store the DOM to avoid memory leaks.
749 750
 				if(!this.data('deferredNoCache')) window._panelDeferredCache[this.data('url')] = this.html();

0 notes on commit 980686a

Please sign in to comment.
Something went wrong with that request. Please try again.