Skip to content

Commit

Permalink
Add delay and count parameters to $interval call
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alex Weisberger authored Nov 10, 2017
1 parent 5035fd2 commit 7354c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infinite-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ angular.module(MODULE_NAME, [])
return $interval.cancel(checkInterval);
}

checkInterval = $interval(intervalCheck);
checkInterval = $interval(intervalCheck, 0, 1);
return checkInterval;
},
}),
Expand Down

0 comments on commit 7354c66

Please sign in to comment.