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

Commit 424f4b8

Browse files
dimvargkalpak
authored andcommitted
refactor(*): avoid non-existent property warnings from Closure Compiler
Closes #15672
1 parent f73a651 commit 424f4b8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ function bindJQuery() {
18371837
extend(jQuery.fn, {
18381838
scope: JQLitePrototype.scope,
18391839
isolateScope: JQLitePrototype.isolateScope,
1840-
controller: JQLitePrototype.controller,
1840+
controller: /** @type {?} */ (JQLitePrototype).controller,
18411841
injector: JQLitePrototype.injector,
18421842
inheritedData: JQLitePrototype.inheritedData
18431843
});

src/ng/http.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,8 @@ function $HttpProvider() {
12571257
if ((config.cache || defaults.cache) && config.cache !== false &&
12581258
(config.method === 'GET' || config.method === 'JSONP')) {
12591259
cache = isObject(config.cache) ? config.cache
1260-
: isObject(defaults.cache) ? defaults.cache
1260+
: isObject(/** @type {?} */ (defaults).cache)
1261+
? /** @type {?} */ (defaults).cache
12611262
: defaultCache;
12621263
}
12631264

src/ng/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
214214
withoutHashUrl = '';
215215
if (isUndefined(withoutBaseUrl)) {
216216
appBase = url;
217-
this.replace();
217+
/** @type {?} */ (this).replace();
218218
}
219219
}
220220
}

0 commit comments

Comments
 (0)