do readOnly check for configured properties where they are handed down, rather than when they are consumed.

This commit is contained in:
Steven Orvell 2015-11-04 20:56:15 -08:00
parent 6d4b5405c2
commit 24bcedbf41

View File

@ -69,7 +69,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// at configure time values are stored in _config
_configValue: function(name, value) {
this._config[name] = value;
var info = this._propertyInfo[name];
if (!info || !info.readOnly) {
this._config[name] = value;
}
},
// Override polymer-mini thunk
@ -98,7 +101,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// there are some test issues.
//this._configureProperties(this._propertyInfo, config);
// override local configuration with configuration from above
this._mixinConfigure(config, this._aboveConfig);
this.mixin(config, this._aboveConfig);
// this is the new _config, which are the final values to be applied
this._config = config;
// pass configuration data to bindings
@ -122,15 +125,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
_mixinConfigure: function(a, b) {
for (var prop in b) {
var info = this._propertyInfo[prop];
if (!info || !info.readOnly) {
a[prop] = b[prop];
}
}
},
// distribute config values to bound nodes.
_distributeConfig: function(config) {
var fx$ = this._propertyEffects;