Make defaultPrevented condition more readable

This commit is contained in:
Jun 2016-06-23 10:05:56 +09:00
parent 4198b23231
commit 838ccbba77

View File

@ -40,7 +40,7 @@ function bindKeyboardHandler(element, i) {
}
i.event.bind(i.ownerDocument, 'keydown', function (e) {
if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
if ((e.isDefaultPrevented && e.isDefaultPrevented()) || e.defaultPrevented) {
return;
}