Skip to content

Commit

Permalink
Merge remote branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
samcleaver committed Jun 27, 2011
2 parents f5b7f26 + 787b76a commit ca82aa8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions jquery.infinitescroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@

},

// grab each selector option and see if any fail
// grab each selector option and see if any fail
_validate: function infscr_validate(opts) {

for (var key in opts) {
Expand Down Expand Up @@ -560,6 +560,13 @@
// Unbind from scroll
unbind: function infscr_unbind() {
this._binding('unbind');
},

// update options
update: function infscr_options(key) {
if ($.isPlainObject(key)) {
this.options = $.extend(true,this.options,key);
}
}

}
Expand Down Expand Up @@ -625,8 +632,8 @@

if (instance) {

// go for it
// instance._update(options);
// update options of current instance
instance.update(options);

} else {

Expand Down

0 comments on commit ca82aa8

Please sign in to comment.