Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream changes to externs #5348

Merged
merged 4 commits into from
Feb 5, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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