fix: don’t use the global ng at all with closure enhanced optimizations

This is needed as:
- closure declares globals itself for minified names, which sometimes clobber our `ng` global
- we can't declare a closure extern as the namespace `ng` is already used within Google for typings for angularJS (via `goog.provide('ng....')`).
This commit is contained in:
Tobias Bosch
2017-09-26 19:41:08 -07:00
committed by Victor Berchet
parent b21a1d1961
commit a7798f2a93
5 changed files with 29 additions and 10 deletions

View File

@ -8,10 +8,10 @@
* @externs
*/
/**
* @suppress {duplicate}
*/
var ng;
// Note: we can't declare an extern for the global variable `ng` as
// the namespace `ng` is already used within Google
// for typings for angularJS (via `goog.provide('ng....')`).
/**
* @suppress {duplicate}
*/