element can also be removed during gainfocus
This commit is contained in:
parent
a579f47a27
commit
66a130e35f
1 changed files with 9 additions and 5 deletions
|
@ -51,9 +51,13 @@ Ox.Focus = (function() {
|
|||
that.cleanup();
|
||||
}
|
||||
}
|
||||
$element
|
||||
.addClass('OxFocus')
|
||||
.triggerEvent('gainfocus');
|
||||
try {
|
||||
$element
|
||||
.addClass('OxFocus')
|
||||
.triggerEvent('gainfocus');
|
||||
} catch(e) {
|
||||
that.cleanup();
|
||||
}
|
||||
}
|
||||
},
|
||||
hasFocus: function($element) {
|
||||
|
|
Loading…
Reference in a new issue