From b30deb22aed0a945d7b78f935fb61a1c2d6348f4 Mon Sep 17 00:00:00 2001 From: Chad Killingsworth Date: Tue, 7 Mar 2017 13:07:47 -0600 Subject: [PATCH] Don't override the goog namespace if it already exists --- lib/utils/boot.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/utils/boot.html b/lib/utils/boot.html index 64b2971dba..677a295466 100644 --- a/lib/utils/boot.html +++ b/lib/utils/boot.html @@ -39,13 +39,12 @@ 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 */ })();