Skip to content

Commit b87dbd0

Browse files
committed
rm some logic noise
1 parent f1c4b61 commit b87dbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/assets/mouse_event.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = function(type, x, y, opts) {
66
};
77

88
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
9-
if(opts) {
10-
if(opts.buttons) fullOpts.buttons = opts.buttons;
9+
if(opts && opts.buttons) {
10+
fullOpts.buttons = opts.buttons;
1111
}
1212

1313
var el = document.elementFromPoint(x,y);

0 commit comments

Comments
 (0)