Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
fix(is-ready max attempts): Stop checking map's readiness after reach…
Browse files Browse the repository at this point in the history
…ing max attempts issue #/1445
  • Loading branch information
nmccready committed Aug 25, 2015
1 parent b43e651 commit 63637fe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions dist/angular-google-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,11 +1144,12 @@ Nicholas McCready - https://twitter.com/nmccready
return $timeout(function() {
if (retriesLeft <= 0) {
deferred.reject('Your maps are not found we have checked the maximum amount of times. :)');
return;
}
if (_ctr !== expectedInstances) {
return _checkIfReady(deferred, expectedInstances, retriesLeft - 1);
_checkIfReady(deferred, expectedInstances, retriesLeft - 1);
} else {
return deferred.resolve(_promises());
deferred.resolve(_promises());
}
}, 100);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-google-maps.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/angular-google-maps_dev_mapped.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,11 +1144,12 @@ Nicholas McCready - https://twitter.com/nmccready
return $timeout(function() {
if (retriesLeft <= 0) {
deferred.reject('Your maps are not found we have checked the maximum amount of times. :)');
return;
}
if (_ctr !== expectedInstances) {
return _checkIfReady(deferred, expectedInstances, retriesLeft - 1);
_checkIfReady(deferred, expectedInstances, retriesLeft - 1);
} else {
return deferred.resolve(_promises());
deferred.resolve(_promises());
}
}, 100);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-google-maps_dev_mapped.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-google-maps_dev_mapped.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-google-maps_dev_mapped.min.js.map

Large diffs are not rendered by default.

0 comments on commit 63637fe

Please sign in to comment.