mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
Merge branch '2.x' into 5262-kschaaf-legacy-undefined
This commit is contained in:
@@ -43,6 +43,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {superClass}
|
||||
* @implements {Polymer_ElementMixin}
|
||||
* @private
|
||||
*/
|
||||
let elementBase = Polymer.ElementMixin(superClass);
|
||||
|
||||
@@ -347,6 +348,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {Polymer.Element}
|
||||
* @implements {Polymer_ArraySelectorMixin}
|
||||
* @private
|
||||
*/
|
||||
let baseArraySelector = ArraySelectorMixin(Polymer.Element);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @implements {Polymer_PropertyEffects}
|
||||
* @implements {Polymer_OptionalMutableData}
|
||||
* @implements {Polymer_GestureEventListeners}
|
||||
* @private
|
||||
*/
|
||||
const domBindBase =
|
||||
Polymer.GestureEventListeners(
|
||||
|
||||
@@ -24,6 +24,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @implements {Polymer_OptionalMutableData}
|
||||
* @extends {Polymer.Element}
|
||||
* @private
|
||||
*/
|
||||
const domRepeatBase = Polymer.OptionalMutableData(Polymer.Element);
|
||||
|
||||
|
||||
@@ -142,6 +142,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
*/
|
||||
function GenerateClassFromInfo(info, Base) {
|
||||
|
||||
/** @private */
|
||||
class PolymerGenerated extends Base {
|
||||
|
||||
static get properties() {
|
||||
|
||||
@@ -48,6 +48,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @implements {Polymer_ElementMixin}
|
||||
* @implements {Polymer_GestureEventListeners}
|
||||
* @implements {Polymer_DirMixin}
|
||||
* @private
|
||||
*/
|
||||
const legacyElementBase = Polymer.DirMixin(Polymer.GestureEventListeners(Polymer.ElementMixin(base)));
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {base}
|
||||
* @implements {Polymer_PropertyAccessors}
|
||||
* @private
|
||||
*/
|
||||
const elementBase = Polymer.PropertyAccessors(base);
|
||||
|
||||
|
||||
@@ -45,8 +45,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {base}
|
||||
* @implements {Polymer_ElementMixin}
|
||||
* @private
|
||||
*/
|
||||
const superClass = Polymer.ElementMixin(base);
|
||||
|
||||
/**
|
||||
* @polymer
|
||||
* @mixinClass
|
||||
|
||||
@@ -98,6 +98,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @extends {base}
|
||||
* @implements {Polymer_PropertyEffects}
|
||||
* @implements {Polymer_PropertiesMixin}
|
||||
* @private
|
||||
*/
|
||||
const polymerElementBase = Polymer.PropertiesMixin(Polymer.PropertyEffects(base));
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {superClass}
|
||||
* @implements {Polymer_PropertiesChanged}
|
||||
* @private
|
||||
*/
|
||||
const base = Polymer.PropertiesChanged(superClass);
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @extends {superClass}
|
||||
* @implements {Polymer_PropertiesChanged}
|
||||
* @unrestricted
|
||||
* @private
|
||||
*/
|
||||
const base = Polymer.PropertiesChanged(superClass);
|
||||
|
||||
|
||||
@@ -356,7 +356,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
toPath = Polymer.Path.translate(fromProp, toPath, fromPath);
|
||||
value = detail && detail.value;
|
||||
} else {
|
||||
value = event.target[fromProp];
|
||||
value = event.currentTarget[fromProp];
|
||||
}
|
||||
value = negate ? !value : value;
|
||||
if (!inst[TYPES.READ_ONLY] || !inst[TYPES.READ_ONLY][toPath]) {
|
||||
@@ -1072,6 +1072,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @implements {Polymer_PropertyAccessors}
|
||||
* @implements {Polymer_TemplateStamp}
|
||||
* @unrestricted
|
||||
* @private
|
||||
*/
|
||||
const propertyEffectsBase = Polymer.TemplateStamp(Polymer.PropertyAccessors(superClass));
|
||||
|
||||
|
||||
@@ -126,6 +126,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {base}
|
||||
* @implements {Polymer_PropertyEffects}
|
||||
* @private
|
||||
*/
|
||||
const elementBase = Polymer.PropertyEffects(base);
|
||||
|
||||
|
||||
@@ -472,7 +472,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
/**
|
||||
* Override point for adding custom or simulated event handling.
|
||||
*
|
||||
* @param {Node} node Node to remove event listener from
|
||||
* @param {!Node} node Node to remove event listener from
|
||||
* @param {string} eventName Name of event
|
||||
* @param {function(!Event):void} handler Listener function to remove
|
||||
* @return {void}
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
};
|
||||
/* eslint-enable */
|
||||
|
||||
window.Polymer.version = '2.6.0';
|
||||
window.Polymer.version = '2.6.1';
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
/*
|
||||
|
||||
@@ -22,6 +22,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Function}
|
||||
* @private
|
||||
*/
|
||||
function MixinFunction(){}
|
||||
/** @type {(WeakMap | undefined)} */
|
||||
|
||||
@@ -21,9 +21,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
// class only because Babel (incorrectly) requires super() in the class
|
||||
// constructor even though no `this` is used and it returns an instance.
|
||||
let newInstance = null;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {HTMLTemplateElement}
|
||||
* @private
|
||||
*/
|
||||
function HTMLTemplateElementExtension() { return newInstance; }
|
||||
HTMLTemplateElementExtension.prototype = Object.create(HTMLTemplateElement.prototype, {
|
||||
@@ -32,16 +34,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
writable: true
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Polymer_PropertyEffects}
|
||||
* @extends {HTMLTemplateElementExtension}
|
||||
* @private
|
||||
*/
|
||||
const DataTemplate = Polymer.PropertyEffects(HTMLTemplateElementExtension);
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Polymer_MutableData}
|
||||
* @extends {DataTemplate}
|
||||
* @private
|
||||
*/
|
||||
const MutableDataTemplate = Polymer.MutableData(DataTemplate);
|
||||
|
||||
@@ -53,10 +59,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
newInstance = null;
|
||||
}
|
||||
|
||||
// Base class for TemplateInstance's
|
||||
/**
|
||||
* Base class for TemplateInstance.
|
||||
* @constructor
|
||||
* @implements {Polymer_PropertyEffects}
|
||||
* @private
|
||||
*/
|
||||
const base = Polymer.PropertyEffects(class {});
|
||||
|
||||
@@ -268,6 +275,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @constructor
|
||||
* @extends {TemplateInstanceBase}
|
||||
* @implements {Polymer_MutableData}
|
||||
* @private
|
||||
*/
|
||||
const MutableTemplateInstanceBase = Polymer.MutableData(TemplateInstanceBase);
|
||||
|
||||
@@ -311,6 +319,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
let klass = templateInfo.templatizeTemplateClass;
|
||||
if (!klass) {
|
||||
let base = options.mutableData ? MutableDataTemplate : DataTemplate;
|
||||
/** @private */
|
||||
klass = templateInfo.templatizeTemplateClass =
|
||||
class TemplatizedTemplate extends base {};
|
||||
// Add template - >instances effects
|
||||
|
||||
Reference in New Issue
Block a user