From 7354c6603a1832bc089f706dc13e97657d8619bf Mon Sep 17 00:00:00 2001 From: Alex Weisberger Date: Fri, 10 Nov 2017 15:26:02 -0500 Subject: [PATCH] Add delay and count parameters to $interval call Angular ~1.5 expects there to be a delay param. In ngMock, there is no default value for the delay, so you effectively have `time + undefined`, which yields a string. --- src/infinite-scroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infinite-scroll.js b/src/infinite-scroll.js index b0ee8d9..2c27f0a 100644 --- a/src/infinite-scroll.js +++ b/src/infinite-scroll.js @@ -261,7 +261,7 @@ angular.module(MODULE_NAME, []) return $interval.cancel(checkInterval); } - checkInterval = $interval(intervalCheck); + checkInterval = $interval(intervalCheck, 0, 1); return checkInterval; }, }),