Browse files

fix missing options

  • Loading branch information...
1 parent 7b9319b commit de7ad443f09b56cda9a505592cedb9bd69b99d82 @mhelgeson mhelgeson committed May 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 fire/jquery.fire.js
View
1 fire/jquery.fire.js
@@ -6,6 +6,7 @@
// jQuery method
$.fn.fire = function( type, opts ){
+ opts = opts || {};
// translate pageX to clientX
if ( opts.pageX && !opts.clientX )
opts.clientX = opts.pageX - $( window ).scrollLeft();

0 comments on commit de7ad44

Please sign in to comment.