diff --git a/lib/utils/settings.js b/lib/utils/settings.js index a179f87c55..5094b58a50 100644 --- a/lib/utils/settings.js +++ b/lib/utils/settings.js @@ -52,7 +52,7 @@ export const setRootPath = function(path) { * * @type {(function(*,string,string,Node):*)|undefined} */ -export let sanitizeDOMValue = undefined; +export let sanitizeDOMValue = window.Polymer && window.Polymer.sanitizeDOMValue || undefined; /** * Sets the global sanitizeDOMValue available via this module's exported @@ -65,7 +65,6 @@ export const setSanitizeDOMValue = function(newSanitizeDOMValue) { sanitizeDOMValue = newSanitizeDOMValue; }; - /** * Globally settable property to make Polymer Gestures use passive TouchEvent listeners when recognizing gestures. * When set to `true`, gestures made from touch will not be able to prevent scrolling, allowing for smoother