X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/654e7cf77f7241bfc866a4879829367d39179577..9dff468f6a01c7bfa4125ff2e929153482d62b56:/project/static/js/editor.js?ds=sidebyside 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