mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Limiting console.log() output to explicit enabling through window.debug to avoid failing IE
This commit is contained in:
parent
21e7ec61f4
commit
980686ab75
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user