File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88subject 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' ;
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 /**
9496
9597 }
9698
97- } ;
99+ } ) ;
98100
99101 /**
100102 * Element class mixin to add the optional ability to skip strict
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
171173 }
172174 }
173175
174- } ;
176+ } ) ;
175177
176178 // Export for use by legacy behavior
177179 Polymer . MutableData . _mutablePropertyChange = mutablePropertyChange ;
Original file line number Diff line number Diff line change 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
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 ;
You can’t perform that action at this time.
0 commit comments