Permalink
Browse files

Merge pull request #9 from jonstorer/patch-1

refactor default options merge to avert side effects.
  • Loading branch information...
2 parents e053ee1 + c776396 commit 63c1c45517f09b493deca9831ebff982718e3599 @fredwu fredwu committed Nov 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.endless-scroll.js
@@ -64,7 +64,7 @@
ceaseFire: function() { return false; }
};
- var options = $.extend(defaults, options);
+ var options = $.extend({}, defaults, options);
var firing = true;
var fired = false;

0 comments on commit 63c1c45

Please sign in to comment.