1
0
Fork 0
forked from 0x2620/oxjs

when removing an element, unbind global keyboard handler; delay request timeout dialog until after window unload

This commit is contained in:
rlx 2011-11-08 10:27:49 +00:00
commit 243614cee2
3 changed files with 54 additions and 33 deletions

View file

@ -405,6 +405,7 @@ Ox.Element = function(options, self) {
element && element.remove(false);
});
Ox.Focus.remove(that.id);
Ox.Keyboard.unbind(that.id);
delete self.$eventHandler;
delete Ox.UI.elements[that.id];
that.$tooltip && that.$tooltip.remove();