Skip to content

Commit

Permalink
Fix jsdoc warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 14, 2017
1 parent 38a13f6 commit dab794b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions lib/mixins/mutable-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="../utils/mixin.html">

<script>
(function() {
'use strict';
Expand Down Expand Up @@ -68,7 +70,7 @@
* @summary Element class mixin to skip strict dirty-checking for objects
* and arrays
*/
Polymer.MutableData = (superClass) => {
Polymer.MutableData = Polymer.dedupingMixin((superClass) => {

return class MutableData extends superClass {
/**
Expand All @@ -94,7 +96,7 @@

}

};
});

/**
* Element class mixin to add the optional ability to skip strict
Expand Down Expand Up @@ -133,7 +135,7 @@
* @summary Element class mixin to optionally skip strict dirty-checking
* for objects and arrays
*/
Polymer.OptionalMutableData = (superClass) => {
Polymer.OptionalMutableData = Polymer.dedupingMixin((superClass) => {

return class OptionalMutableData extends superClass {

Expand Down Expand Up @@ -171,7 +173,7 @@
}
}

};
});

// Export for use by legacy behavior
Polymer.MutableData._mutablePropertyChange = mutablePropertyChange;
Expand Down
7 changes: 4 additions & 3 deletions lib/utils/templatize.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,13 @@
*
* @memberof Polymer.Templatize
* @method modelForElement
* @param {HTMLElement} host
* @param {HTMLTemplateElement} template The model will be returned for
* elements stamped from this template
* @param {HTMLElement} el Element for which to return a template model.
* @return {TemplateInstanceBase} Template instance representing the
* binding scope for the element
*/
modelForElement(host, el) {
modelForElement(template, el) {
let model;
while (el) {
// An element with a __templatizeInstance marks the top boundary
Expand All @@ -446,7 +447,7 @@
if ((model = el.__templatizeInstance)) {
// Found an element stamped by another template; keep walking up
// from its __dataHost
if (model.__dataHost != host) {
if (model.__dataHost != template) {
el = model.__dataHost;
} else {
return model;
Expand Down

0 comments on commit dab794b

Please sign in to comment.