mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
do readOnly check for configured properties where they are handed down, rather than when they are consumed.
This commit is contained in:
parent
6d4b5405c2
commit
24bcedbf41
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user