performance.html revision a3b15d60042c81a524cebb94370e5a234a19d04b
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
YNode = Y.Node;
YSub = Y.Lang.sub;
// Y.one('#node table').remove();
// Y.one('#node table').remove();
//This table is generated through a series of node creations using Y.Node.create()
TEMPLATE_TH = '<th id="{id}" rowspan="{rowspan}" colspan="{colspan}" class="{classnames}"><div>{value}</div></th>',
tblNode = YNode.create(TEMPLATE_TABLE),
tBodyNode = YNode.create(TEMPLATE_TBODY),
trNode = YNode.create(TEMPLATE_TR);
TEMPLATE_TH = '<th id="{id}" rowspan="{rowspan}" colspan="{colspan}" class="{classnames}"><div>{value}</div></th>',
TEMPLATE_TH = '<th id="{id}" rowspan="{rowspan}" colspan="{colspan}" class="{classnames}"><div>{value}</div></th>',
tbody.appendChild(tr);
tr = document.createElement("tr");
var td = document.createElement("td"),
liner = document.createElement('div');
liner.innerHTML = YSub(TEMPLATE_VALUE, {value:i});
td.appendChild(liner);
tr.appendChild(td);
tbl.appendChild(tbody);
document.getElementById('node').appendChild(tbl);
//This method generates a super long string, and performs 1 Y.Node.create() operation