Skip to content

Commit e187cfc

Browse files
committed
preventing 'apply' method call on undefined obj
1 parent f75b61f commit e187cfc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/jquery.mousewheel.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ function handler(event) {
8484
// Add event and delta to the front of the arguments
8585
args.unshift(event, delta, deltaX, deltaY);
8686

87-
return $.event.handle.apply(this, args);
87+
if ($.event.handle) {
88+
return $.event.handle.apply(this, args);
89+
}
8890
}
8991

90-
})(jQuery);
92+
})(jQuery);

0 commit comments

Comments
 (0)