
properties: {
"if": {
type: Boolean,
value: false
},
restamp: {
type: Boolean,
value: false
}
},
behaviors: [ Polymer.Templatizer ],
observers: [ "_queueRender(if, restamp)" ],
_queueRender: function() {
this._debounceTemplate(this._render);
},
detached: function() {
this._teardownInstance();
},
attached: function() {
if (this.if && this.ctor) {
this.async(this._ensureInstance);
}
},
render: function() {
this._flushTemplates();
},
_render: function() {
if (this.if) {
if (!this.ctor) {
this._wrapTextNodes(t