From 0356b2df403e20e18661f1fca69bbbfb2e38af13 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 21 Dec 2017 12:18:31 -0800 Subject: [PATCH] Fix settings so that its properly picked up by both gen-ts and modulizer --- lib/utils/settings.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/utils/settings.html b/lib/utils/settings.html index 88304a8e13..84558c8085 100644 --- a/lib/utils/settings.html +++ b/lib/utils/settings.html @@ -16,13 +16,6 @@ (function() { 'use strict'; - const settings = Polymer.Settings || {}; - settings.useShadow = !(window.ShadyDOM); - settings.useNativeCSSProperties = - Boolean(!window.ShadyCSS || window.ShadyCSS.nativeCss); - settings.useNativeCustomElements = - !(window.customElements.polyfillWrapFlushCallback); - /** * Sets the global, legacy settings. * @@ -30,7 +23,14 @@ * @namespace * @memberof Polymer */ - Polymer.Settings = settings; + Polymer.Settings = Polymer.Settings || {}; + + Polymer.Settings.useShadow = !(window.ShadyDOM); + Polymer.Settings.useNativeCSSProperties = + Boolean(!window.ShadyCSS || window.ShadyCSS.nativeCss); + Polymer.Settings.useNativeCustomElements = + !(window.customElements.polyfillWrapFlushCallback); + /** * Globally settable property that is automatically assigned to