Skip to content

Commit

Permalink
Upstream changes to externs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Aug 28, 2018
1 parent 0d35437 commit 83834af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
17 changes: 16 additions & 1 deletion externs/polymer-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ function Polymer(init){}
*/
Polymer.sanitizeDOMValue;

/**
* @type {boolean}
*/
Polymer.passiveTouchGestures;

/**
* @type {boolean}
*/
Polymer.strictTemplatePolicy;

/**
* @type {boolean}
*/
Polymer.allowTemplateFromDomModule;

/**
* @param {string} string
* @param {Object} obj
Expand Down Expand Up @@ -172,7 +187,7 @@ var PolymerDeepPropertyChange;
* @constructor
* @template T
*/
let DomRepeatEvent = function() {};
var DomRepeatEvent = function() {};

/**
* @type {{
Expand Down
16 changes: 8 additions & 8 deletions externs/webcomponents-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@
*/
/* eslint-disable */

let HTMLImports = {
var HTMLImports = {
/**
* @param {function()} callback
*/
whenReady(callback){},
whenReady(callback) {},
/**
* @param {Element} element
* @returns {Document} document
*/
importForElement(element){}
importForElement(element) {}
};

window.HTMLImports = HTMLImports;

let ShadyDOM = {
var ShadyDOM = {
inUse: false,
flush(){},
flush() {},
/**
* @param {!Node} target
* @param {function(Array<MutationRecord>, MutationObserver)} callback
* @return {MutationObserver}
*/
observeChildren(target, callback){},
observeChildren(target, callback) {},
/**
* @param {MutationObserver} observer
*/
unobserveChildren(observer){},
unobserveChildren(observer) {},
/**
* @param {Node} node
*/
patch(node){}
patch(node) {}
};

window.ShadyDOM = ShadyDOM;
Expand Down

0 comments on commit 83834af

Please sign in to comment.