- if (!this.uidIndex) {
- // build checkbox index
- this.uidIndex = {};
- var i, node, length=0;
- var nodes = this.grid.childNodes;
- for (i=0 ; i<nodes.length ; i++) {
- node = nodes[i];
- if (node.nodeName === 'SPAN') {
- this.uidIndex[node.name] = node;
- length++;
- }
- }
- this.uidIndex.length = length;
- }