ow.root).appendChild(el);
}
return row;
},
_insertRow: function(idx, pool, item) {
var row = pool && pool.pop() || this._generateRow(idx, item);
var beforeRow = this.rows[idx];
var beforeNode = beforeRow ? beforeRow._children[0] : this;
var parentNode = Polymer.dom(this).parentNode;
Polymer.dom(parentNode).insertBefore(row.root, beforeNode);
return row;
},
_generateRow: function(idx, item) {
var model = {
__key__: this.collection.getKey(item)
};
model[this.as] = item;
model[this.indexAs] = idx;
var row = th