element can also be removed during gainfocus

This commit is contained in:
j 2017-07-29 22:06:27 +02:00
parent a579f47a27
commit 66a130e35f

View file

@ -49,11 +49,15 @@ Ox.Focus = (function() {
.triggerEvent('losefocus');
} catch(e) {
that.cleanup();
}
}
}
try {
$element
.addClass('OxFocus')
.triggerEvent('gainfocus');
} catch(e) {
that.cleanup();
}
$element
.addClass('OxFocus')
.triggerEvent('gainfocus');
}
},
hasFocus: function($element) {
@ -97,4 +101,4 @@ Ox.Focus = (function() {
return that;
}());
}());