Skip to content

Commit

Permalink
Pass items to onAfterPageLoad
Browse files Browse the repository at this point in the history
When using masonry or isotope it's necessary to know the items which have to be relayouted. This change passes the items that were extracted of the response to the `onAfterPageLoad` callback. Using that, efficient relayouting can be accomplished by using isotope's `appended` method with the passed items.
  • Loading branch information
CHH committed Apr 8, 2015
1 parent e53f088 commit b7c9276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shortcuts/infinite.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
this.$more.remove()
}

this.options.onAfterPageLoad()
this.options.onAfterPageLoad($items)
}, this))
}, this)
}
Expand Down

0 comments on commit b7c9276

Please sign in to comment.