We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bb9e14 commit 48603a4Copy full SHA for 48603a4
test/jasmine/assets/mouse_event.js
@@ -10,7 +10,7 @@ module.exports = function(type, x, y, opts) {
10
fullOpts.buttons = opts.buttons;
11
}
12
13
- var el = opts.element || document.elementFromPoint(x, y),
+ var el = (opts && opts.element) || document.elementFromPoint(x, y),
14
ev;
15
16
if(type === 'scroll') {
0 commit comments