Grandfather defaulting sanitizeDOMValue from legacy Polymer object.

This commit is contained in:
Kevin Schaaf
2018-08-22 13:55:04 -04:00
parent d5935a9c04
commit d5672dcf65

View File

@@ -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