refactor(*): avoid non-existent property warnings from Closure Compiler

Closes #15672
This commit is contained in:
Dimitris Vardoulakis
2017-02-02 09:31:26 -08:00
committed by Georgios Kalpakas
parent 848857aa5b
commit f4bb973eb7
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1870,7 +1870,7 @@ function bindJQuery() {
extend(jQuery.fn, {
scope: JQLitePrototype.scope,
isolateScope: JQLitePrototype.isolateScope,
controller: JQLitePrototype.controller,
controller: /** @type {?} */ (JQLitePrototype).controller,
injector: JQLitePrototype.injector,
inheritedData: JQLitePrototype.inheritedData
});
+2 -1
View File
@@ -1255,7 +1255,8 @@ function $HttpProvider() {
if ((config.cache || defaults.cache) && config.cache !== false &&
(config.method === 'GET' || config.method === 'JSONP')) {
cache = isObject(config.cache) ? config.cache
: isObject(defaults.cache) ? defaults.cache
: isObject(/** @type {?} */ (defaults).cache)
? /** @type {?} */ (defaults).cache
: defaultCache;
}
+1 -1
View File
@@ -216,7 +216,7 @@ function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
withoutHashUrl = '';
if (isUndefined(withoutBaseUrl)) {
appBase = url;
this.replace();
/** @type {?} */ (this).replace();
}
}
}