Make defaultPrevented condition more readable
This commit is contained in:
parent
4198b23231
commit
838ccbba77
@ -40,7 +40,7 @@ function bindKeyboardHandler(element, i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
i.event.bind(i.ownerDocument, 'keydown', function (e) {
|
i.event.bind(i.ownerDocument, 'keydown', function (e) {
|
||||||
if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
|
if ((e.isDefaultPrevented && e.isDefaultPrevented()) || e.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user