mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
revert host attributes ordering change optimization as it was not worth the trouble (barely measurable and more cumbersome impl).
This commit is contained in:
parent
11606ba9db
commit
f9894a09e9
10
polymer.html
10
polymer.html
@ -80,10 +80,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
this._marshalInstanceEffects();
|
||||
// acquire instance behaviors
|
||||
this._marshalBehaviors();
|
||||
// acquire initial instance attribute values
|
||||
this._marshalAttributes();
|
||||
/*
|
||||
TODO(sorvell): It's *slightly() more efficient to marshal attributes prior
|
||||
to installing hostAttributes, but then hostAttributes must be separately
|
||||
funneled to configure, which is cumbersome.
|
||||
Since this delta seems hard to measure we will not bother atm.
|
||||
*/
|
||||
// install host attributes
|
||||
this._marshalHostAttributes();
|
||||
// acquire initial instance attribute values
|
||||
this._marshalAttributes();
|
||||
// top-down initial distribution, configuration, & ready callback
|
||||
this._tryReady();
|
||||
},
|
||||
|
@ -59,6 +59,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
// reserved for canonical behavior
|
||||
attributeChangedCallback: function(name, oldValue, newValue) {
|
||||
// TODO(sorvell): consider filtering out changes to host attributes
|
||||
// note: this was barely measurable with 3 host attributes.
|
||||
this._attributeChangedImpl(name); // abstract
|
||||
this._doBehavior('attributeChanged', [name, oldValue, newValue]); // abstract
|
||||
},
|
||||
|
@ -86,12 +86,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
if (!this.hasAttribute(n) && (n !== 'class')) {
|
||||
var v = attr$[n];
|
||||
this.serializeValueToAttribute(v, n, this);
|
||||
// TODO(sorvell): this should not be in micro layer.
|
||||
// if necessary, add this value to configuration...
|
||||
if (!this._clientsReadied && this._propertyInfo[n] &&
|
||||
(this._config[n] === undefined)) {
|
||||
this._configValue(n, v);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user