Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 808f984

Browse files
Ivan Verevkingkalpak
Ivan Verevkin
authored andcommitted
docs($cacheFactory): fix call to isUndefined() in example
Closes #12899
1 parent 698af19 commit 808f984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/cacheFactory.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
$scope.keys = [];
6868
$scope.cache = $cacheFactory('cacheId');
6969
$scope.put = function(key, value) {
70-
if (isUndefined($scope.cache.get(key))) {
70+
if (angular.isUndefined($scope.cache.get(key))) {
7171
$scope.keys.push(key);
7272
}
73-
$scope.cache.put(key, isUndefined(value) ? null : value);
73+
$scope.cache.put(key, angular.isUndefined(value) ? null : value);
7474
};
7575
}]);
7676
</file>

0 commit comments

Comments
 (0)