Skip to content

Commit

Permalink
Fix settings so that its properly picked up by both gen-ts and modulizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred K. Schott committed Dec 21, 2017
1 parent ee4445f commit 0356b2d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/utils/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
(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.
*
* @deprecated
* @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
Expand Down

0 comments on commit 0356b2d

Please sign in to comment.