Skip to content

Commit

Permalink
Don't override the goog namespace if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Killingsworth committed Mar 7, 2017
1 parent 8fd1b21 commit b30deb2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/utils/boot.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

})();
Expand Down

0 comments on commit b30deb2

Please sign in to comment.