Skip to content

Commit b7c9276

Browse files
committed
Pass items to onAfterPageLoad
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.
1 parent e53f088 commit b7c9276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shortcuts/infinite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
this.$more.remove()
5252
}
5353

54-
this.options.onAfterPageLoad()
54+
this.options.onAfterPageLoad($items)
5555
}, this))
5656
}, this)
5757
}

0 commit comments

Comments
 (0)