Skip to content

Commit dab794b

Browse files
committed
Fix jsdoc warnings.
1 parent 38a13f6 commit dab794b

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

lib/mixins/mutable-data.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
-->
1010

11+
<link rel="import" href="../utils/mixin.html">
12+
1113
<script>
1214
(function() {
1315
'use strict';
@@ -68,7 +70,7 @@
6870
* @summary Element class mixin to skip strict dirty-checking for objects
6971
* and arrays
7072
*/
71-
Polymer.MutableData = (superClass) => {
73+
Polymer.MutableData = Polymer.dedupingMixin((superClass) => {
7274

7375
return class MutableData extends superClass {
7476
/**
@@ -94,7 +96,7 @@
9496

9597
}
9698

97-
};
99+
});
98100

99101
/**
100102
* Element class mixin to add the optional ability to skip strict
@@ -133,7 +135,7 @@
133135
* @summary Element class mixin to optionally skip strict dirty-checking
134136
* for objects and arrays
135137
*/
136-
Polymer.OptionalMutableData = (superClass) => {
138+
Polymer.OptionalMutableData = Polymer.dedupingMixin((superClass) => {
137139

138140
return class OptionalMutableData extends superClass {
139141

@@ -171,7 +173,7 @@
171173
}
172174
}
173175

174-
};
176+
});
175177

176178
// Export for use by legacy behavior
177179
Polymer.MutableData._mutablePropertyChange = mutablePropertyChange;

lib/utils/templatize.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,13 @@
432432
*
433433
* @memberof Polymer.Templatize
434434
* @method modelForElement
435-
* @param {HTMLElement} host
435+
* @param {HTMLTemplateElement} template The model will be returned for
436+
* elements stamped from this template
436437
* @param {HTMLElement} el Element for which to return a template model.
437438
* @return {TemplateInstanceBase} Template instance representing the
438439
* binding scope for the element
439440
*/
440-
modelForElement(host, el) {
441+
modelForElement(template, el) {
441442
let model;
442443
while (el) {
443444
// An element with a __templatizeInstance marks the top boundary
@@ -446,7 +447,7 @@
446447
if ((model = el.__templatizeInstance)) {
447448
// Found an element stamped by another template; keep walking up
448449
// from its __dataHost
449-
if (model.__dataHost != host) {
450+
if (model.__dataHost != template) {
450451
el = model.__dataHost;
451452
} else {
452453
return model;

0 commit comments

Comments
 (0)