Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 855971c

Browse files
committed
fix(angular-mocks): fix forEach -> angular.forEach in $browser.defer.cancel
1 parent 2d489ff commit 855971c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-mocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function MockBrowser() {
296296
self.defer.cancel = function(deferId) {
297297
var fnIndex;
298298

299-
forEach(self.deferredFns, function(fn, index) {
299+
angular.forEach(self.deferredFns, function(fn, index) {
300300
if (fn.id === deferId) fnIndex = index;
301301
});
302302

0 commit comments

Comments
 (0)