Skip to content

Commit 1558128

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

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
@@ -1870,7 +1870,7 @@ function bindJQuery() {
18701870
extend(jQuery.fn, {
18711871
scope: JQLitePrototype.scope,
18721872
isolateScope: JQLitePrototype.isolateScope,
1873-
controller: JQLitePrototype.controller,
1873+
controller: /** @type {?} */ (JQLitePrototype).controller,
18741874
injector: JQLitePrototype.injector,
18751875
inheritedData: JQLitePrototype.inheritedData
18761876
});

src/ng/http.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,8 @@ function $HttpProvider() {
12551255
if ((config.cache || defaults.cache) && config.cache !== false &&
12561256
(config.method === 'GET' || config.method === 'JSONP')) {
12571257
cache = isObject(config.cache) ? config.cache
1258-
: isObject(defaults.cache) ? defaults.cache
1258+
: isObject(/** @type {?} */ (defaults).cache)
1259+
? /** @type {?} */ (defaults).cache
12591260
: defaultCache;
12601261
}
12611262

src/ng/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
216216
withoutHashUrl = '';
217217
if (isUndefined(withoutBaseUrl)) {
218218
appBase = url;
219-
this.replace();
219+
/** @type {?} */ (this).replace();
220220
}
221221
}
222222
}

0 commit comments

Comments
 (0)