Skip to content

Commit 48603a4

Browse files
committed
fix mouseevent for missing opts
1 parent 7bb9e14 commit 48603a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/assets/mouse_event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function(type, x, y, opts) {
1010
fullOpts.buttons = opts.buttons;
1111
}
1212

13-
var el = opts.element || document.elementFromPoint(x, y),
13+
var el = (opts && opts.element) || document.elementFromPoint(x, y),
1414
ev;
1515

1616
if(type === 'scroll') {

0 commit comments

Comments
 (0)