X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/654e7cf77f7241bfc866a4879829367d39179577..0a8fdf777d7f183cb83b3db47c23c12e7cfc6c45:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index 4a1c9d1d..234a436c 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -4,7 +4,6 @@ function Panel(panelWrap) { self.contentDiv = $('.panel-content', panelWrap); self.instanceId = Math.ceil(Math.random() * 1000000000); $.log('new panel - wrap: ', self.wrap); - $(document).bind('panel:unload.' + self.instanceId, function(event, data) { self.unload(event, data); }); @@ -18,7 +17,6 @@ function Panel(panelWrap) { return false; }); - } Panel.prototype.callHook = function(hookName) { @@ -56,7 +54,6 @@ Panel.prototype.unload = function(event, data) { if( data == this ) { $.log('unloading', this); - $(document).unbind('panel:unload.' + this.instanceId); $(this.contentDiv).html(''); this.callHook('unload'); this.hooks = null; // flush the hooks