Skip to content

Commit

Permalink
[ci skip] clean up mixin fn and regen externs
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jun 30, 2017
1 parent 4465381 commit 72022f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion externs/closure-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Polymer_TemplateStamp._parseTemplateNodeAttributes = function(node, templateInfo
* @param {!TemplateInfo} templateInfo Template metadata for current template
* @param {!NodeInfo} nodeInfo Node metadata for current template.
* @param {string} name Attribute name
* @param {*} value Attribute value
* @param {string} value Attribute value
* @return {boolean}
*/
Polymer_TemplateStamp._parseTemplateNodeAttribute = function(node, templateInfo, nodeInfo, name, value){};
Expand Down
23 changes: 14 additions & 9 deletions externs/polymer-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
/* eslint-disable */

/**
* @typedef {Object<string, {
* value: *,
* type: (Function | undefined),
* readOnly: (boolean | undefined),
* computed: (string | undefined),
* reflectToAttribute: (boolean | undefined),
* notify: (boolean | undefined),
* observer: (string | undefined)
* }>}
* @typedef {{
* value: *,
* type: (!Function | undefined),
* readOnly: (boolean | undefined),
* computed: (string | undefined),
* reflectToAttribute: (boolean | undefined),
* notify: (boolean | undefined),
* observer: (string | undefined)
* }}
*/
let PolymerElementPropertiesMeta;

/**
* @typedef {Object<string, !PolymerElementPropertiesMeta>}
*/
let PolymerElementProperties;

Expand Down
6 changes: 3 additions & 3 deletions lib/utils/mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/** @type {(Object | undefined)} */
MixinFunction.prototype.__mixinSet;

/* eslint-disable valid-jsdoc */
/**
* Wraps an ES6 class expression mixin such that the mixin is only applied
* if it has not already been applied its base argument. Also memoizes mixin
Expand All @@ -37,8 +38,6 @@
* @memberof Polymer
* @template T
* @param {T} mixin ES6 class expression mixin to wrap
* @return {T} Wrapped mixin that deduplicates and memoizes
* mixin applications to base
* @suppress {invalidCasts}
*/
Polymer.dedupingMixin = function(mixin) {
Expand Down Expand Up @@ -69,8 +68,9 @@
return extended;
}

return /** @type {T} */(dedupingMixin);
return dedupingMixin;
};
/* eslint-enable valid-jsdoc */

})();

Expand Down

0 comments on commit 72022f2

Please sign in to comment.