mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(angular-mocks): fix .defer.cancel when i=0
This commit is contained in:
parent
3ace81b92a
commit
62ae7fccbc
1 changed files with 1 additions and 1 deletions
2
src/angular-mocks.js
vendored
2
src/angular-mocks.js
vendored
|
|
@ -283,7 +283,7 @@ function MockBrowser() {
|
|||
if (fn.id === deferId) fnIndex = index;
|
||||
});
|
||||
|
||||
if (fnIndex) {
|
||||
if (fnIndex !== undefined) {
|
||||
self.deferredFns.splice(fnIndex, 1);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue