Permalink
Browse files
Use `_clientsReadied` to avoid missing attribute->property sets in re…
- Loading branch information...
|
|
@@ -61,7 +61,7 @@ |
|
|
},
|
|
|
|
|
|
_attributeChangedImpl: function(name) {
|
|
|
- var model = this._readied ? this : this._config;
|
|
|
+ var model = this._clientsReadied ? this : this._config;
|
|
|
this._setAttributeToProperty(model, name);
|
|
|
},
|
|
|
|
|
|
|
|
|
@@ -139,9 +139,19 @@ |
|
|
</dom-module>
|
|
|
<script>
|
|
|
Polymer({
|
|
|
+
|
|
|
+ is: 'x-compose',
|
|
|
+
|
|
|
hostAttributes: {
|
|
|
attr1: 'compose'
|
|
|
},
|
|
|
- is: 'x-compose'
|
|
|
+
|
|
|
+ properties: {
|
|
|
+ prop2: String
|
|
|
+ },
|
|
|
+
|
|
|
+ ready: function() {
|
|
|
+ this.setAttribute('prop2', 'hi');
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
@@ -284,6 +284,7 @@ |
|
|
assert.strictEqual(compose.$.basic.prop, 'compose');
|
|
|
assert.equal(compose.$.basic.propChangedCount, 1);
|
|
|
assert.equal(compose.$.basic.attr1ChangedCount, 1);
|
|
|
+ assert.equal(compose.prop2, 'hi');
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
0 comments on commit
165f716