Skip to content

Commit d5672dc

Browse files
committed
Grandfather defaulting sanitizeDOMValue from legacy Polymer object.
1 parent d5935a9 commit d5672dc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/utils/settings.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const setRootPath = function(path) {
5252
*
5353
* @type {(function(*,string,string,Node):*)|undefined}
5454
*/
55-
export let sanitizeDOMValue = undefined;
55+
export let sanitizeDOMValue = window.Polymer && window.Polymer.sanitizeDOMValue || undefined;
5656

5757
/**
5858
* Sets the global sanitizeDOMValue available via this module's exported
@@ -65,7 +65,6 @@ export const setSanitizeDOMValue = function(newSanitizeDOMValue) {
6565
sanitizeDOMValue = newSanitizeDOMValue;
6666
};
6767

68-
6968
/**
7069
* Globally settable property to make Polymer Gestures use passive TouchEvent listeners when recognizing gestures.
7170
* When set to `true`, gestures made from touch will not be able to prevent scrolling, allowing for smoother

0 commit comments

Comments
 (0)