File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343
4444 var usePolyfillProto = Polymer . Settings . usePolyfillProto ;
4545
46+ // When true, `this.properties` is bad juju due to obsolete `properties`
47+ // accessors on instances of HTMLElement
48+ var avoidInstanceProperties =
49+ Boolean ( Object . getOwnPropertyDescriptor ( document . body , 'properties' ) ) ;
50+
4651 Polymer . Base . _addFeature ( {
4752
4853 // storage for configuration
106111 // property, and b.) the `properties` accessor is on instances rather
107112 // than `HTMLElement.prototype`; going under the instance to the prototype
108113 // avoids the problem.
109- this . _configureProperties ( this . __proto__ . properties , config ) ;
114+ this . _configureProperties ( avoidInstanceProperties ?
115+ this . __proto__ . properties : this . properties , config ) ;
110116 // TODO(sorvell): it *may* be faster to loop over _propertyInfo but
111117 // there are some test issues.
112118 //this._configureProperties(this._propertyInfo, config);
You can’t perform that action at this time.
0 commit comments