From d5672dcf65d27fa2d28765d433db3ef595015d41 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 22 Aug 2018 13:55:04 -0400 Subject: [PATCH] Grandfather defaulting sanitizeDOMValue from legacy Polymer object. --- lib/utils/settings.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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