Skip to content

Commit

Permalink
Grandfather defaulting sanitizeDOMValue from legacy Polymer object.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Aug 22, 2018
1 parent d5935a9 commit d5672dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d5672dc

Please sign in to comment.