rem: debug.print(label + query); 
context:     this.add = function(query) {        var label = "QueryHistoryClass.add: ";        debug.print(label + query);        if (query == null || query == "") {            return;        }        // the whitespace-normalized query acts as the hash key        var key = this.getKey(query);        if (key == null || key == "") {            return;        }        //debug.print(label + "key = " + key);        // lazy initialization        if (null == this.listNode.parentNode) {            // We haven't attached the listNode to the document yet:            // remove any existing text and attach our listNode.            Element.update(this.node, '');            this.node.appendChild(this.listNode);        }        var listItem = this.hash[key];        if (null != listItem) {            // new query has a duplicate: replace the existing item.            Element.remove(listItem);            this.hash[key] = null;        }        // build a new listItem        listItem = this.newListItem(key, query);        // update the hash        this.hash[key] = listItem;        this.lastModified = new Date();        if (!this.listNode.hasChildNodes()) {            debug.print(label + "first entry");            this.listNode.appendChild(listItem);            return;        }        // place the new listItem at the top of the listNode children        this.listNode.insertBefore(listItem, this.listNode.firstChild);        // check size limit, and truncate if needed        var overflow = $A(this.listNode.childNodes).slice(this.limit);        if (null == overflow || overflow.length < 1) {            return;        }        debug.print(label + "truncating " + overflow.length);        // TODO we have values, but this.remove() takes a key        // a key is just the normalized query, though        var key = null;        for (i = 0; i < overflow.length; i++) {            key = this.getKey(this.getListItemValue(overflow[i]));            debug.print(label + "truncating " + i + " = " + key);            this.remove(key);        }    }
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/query.js/clean/query.js