Skip to content

Commit dd00360

Browse files
Merge branch 'patch-1' into 4.0.0
2 parents 6207df2 + 2ecfb75 commit dd00360

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

lib/shortcuts/infinite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
5757
this.$more.remove()
5858
}
5959

60-
this.options.onAfterPageLoad()
60+
this.options.onAfterPageLoad($items)
6161
}, this))
6262
}, this)
6363
}

lib/shortcuts/infinite.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
}

test/infinite-spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ describe('Waypoint Sticky Shortcut', function() {
5555

5656
it('fires the after callback', function() {
5757
expect(afterSpy.callCount).toBeTruthy()
58+
expect(afterSpy.mostRecentCall.args.length).toEqual(1);
59+
expect(afterSpy).toHaveBeenCalledWith(jasmine.any(Object))
5860
})
5961
})
6062

0 commit comments

Comments
 (0)