Merge pull request #78 from lucianocosta/patch-1

preventing 'apply' method call on undefined obj
master
Mark Malek 2013-07-09 12:13:30 -07:00
commit 60b80586e6
1 changed files with 4 additions and 2 deletions

View File

@ -84,7 +84,9 @@ function handler(event) {
// Add event and delta to the front of the arguments
args.unshift(event, delta, deltaX, deltaY);
return $.event.handle.apply(this, args);
if ($.event.handle) {
return $.event.handle.apply(this, args);
}
}
})(jQuery);
})(jQuery);