nt.insertBefore(root, this);
}
},
_teardownInstance: function() {
if (this._instance) {
var c = this._instance._children;
if (c) {
var parent = Polymer.dom(Polymer.dom(c[0]).parentNode);
c.forEach(function(n) {
parent.removeChild(n);
});
}
this._instance = null;
}
},
_wrapTextNodes: function(root) {
for (var n = root.firstChild; n; n = n.nextSibling) {
if (n.nodeType === Node.TEXT_NODE) {
var s = document.createElement("span");
root.insertBefore(s, n);
s.appendChild(n);
n = s;
}
}
},
_hideChildren: function