mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Don't override the goog namespace if it already exists
This commit is contained in:
@@ -39,13 +39,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
When using Closure Compiler, goog.reflect.objectProperty(property, object) is replaced by the munged name for object[property]
|
||||
We cannot alias this function, so we have to use a small shim that has the same behavior when not compiling.
|
||||
*/
|
||||
window.goog = {
|
||||
reflect: {
|
||||
objectProperty(s, o) {
|
||||
return s;
|
||||
}
|
||||
window.goog = window.goog || {};
|
||||
window.goog.reflect = window.goog.reflect || {
|
||||
objectProperty(s, o) {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
};
|
||||
/* eslint-enable */
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user