}
var tpl = {
+ id : false,
attr : false,
value : false,
html : ''
return;
}
var id = this.id++;
- var value = node.getAttribute('roo-' + attr);
- node.removeAttribute('roo-'+ attr);
- if (attr != 'name') {
+ var value = node.getAttribute('roo-' + tpl.attr);
+ node.removeAttribute('roo-'+ tpl.attr);
+ if (tpl.attr != 'name') {
var placeholder = document.createTextNode('{domtpl' + id + '}');
node.parentNode.replaceChild(placeholder, node);
} else {