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();
|
that.cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
$element
|
$element
|
||||||
.addClass('OxFocus')
|
.addClass('OxFocus')
|
||||||
.triggerEvent('gainfocus');
|
.triggerEvent('gainfocus');
|
||||||
|
} catch(e) {
|
||||||
|
that.cleanup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hasFocus: function($element) {
|
hasFocus: function($element) {
|
||||||
|
|
Loading…
Reference in a new issue