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
|
@ -49,11 +49,15 @@ Ox.Focus = (function() {
|
||||||
.triggerEvent('losefocus');
|
.triggerEvent('losefocus');
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
that.cleanup();
|
that.cleanup();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
$element
|
||||||
|
.addClass('OxFocus')
|
||||||
|
.triggerEvent('gainfocus');
|
||||||
|
} catch(e) {
|
||||||
|
that.cleanup();
|
||||||
}
|
}
|
||||||
$element
|
|
||||||
.addClass('OxFocus')
|
|
||||||
.triggerEvent('gainfocus');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hasFocus: function($element) {
|
hasFocus: function($element) {
|
||||||
|
@ -97,4 +101,4 @@ Ox.Focus = (function() {
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in a new issue