File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 4242 *
4343 * @memberof Polymer
4444 */
45- let rootPath = Polymer . rootPath ||
46- Polymer . ResolveUrl . pathFromUrl ( document . baseURI || window . location . href ) ;
47-
48- Polymer . rootPath = rootPath ;
45+ Polymer . rootPath = Polymer . rootPath ||
46+ Polymer . ResolveUrl . pathFromUrl ( document . baseURI || window . location . href ) ; ;
4947
5048 /**
5149 * Sets the global rootPath property used by `Polymer.ElementMixin` and
7674 * @type {(function(*,string,string,Node):*)|undefined }
7775 * @memberof Polymer
7876 */
79- let sanitizeDOMValue = Polymer . sanitizeDOMValue ;
80-
81- // This is needed for tooling
82- Polymer . sanitizeDOMValue = sanitizeDOMValue ;
77+ Polymer . sanitizeDOMValue = Polymer . sanitizeDOMValue || null ;
8378
8479 /**
8580 * Sets the global sanitizeDOMValue available via `Polymer.sanitizeDOMValue`.
10095 *
10196 * @memberof Polymer
10297 */
103- let passiveTouchGestures = false ;
104-
105- Polymer . passiveTouchGestures = passiveTouchGestures ;
98+ Polymer . passiveTouchGestures = Polymer . passiveTouchGestures || false ;
10699
107100 /**
108101 * Sets `passiveTouchGestures` globally for all elements using Polymer Gestures.
115108 Polymer . passiveTouchGestures = usePassive ;
116109 } ;
117110
118- let legacyOptimizations = false ;
119- Polymer . legacyOptimizations = legacyOptimizations ;
111+ Polymer . legacyOptimizations = Polymer . legacyOptimizations ||
112+ window . PolymerSettings && PolymerSettings . legacyOptimizations || false ;
113+
120114 /**
121115 * Sets `legacyOptimizations` globally for all elements. Enables
122116 * optimizations when only legacy Polymer() style elements are used.
You can’t perform that action at this time.
0 commit comments