- $(document).unbind('panel:load.' + id, load);
- }
-
- var unload = function(event, panel) {
- console.log('unload event!', panel, self);
- if (panel == self) {
- console.log('unloading panel', self);
- $(document).unbind('panel:unload.' + id, unload);
- }
- };
-
- $(document).bind('panel:load.' + id, load);
- $(document).bind('panel:unload.' + id, unload);
+ $(window).bind('resize', {'panel': panel}, resizeEditor);
+ resizeEditor(null, panel);
+ }, function(event, panel) {
+ console.log('unloaded xmleditor panel', panel);
+ })