rem: if (a[i] = x) a.splice(i,1); 
add: while (i < a.length && !(compareDocumentPosition(a[i], x) & DOCUMENT_ORDER_AFTER)) { if (a[i] == x) { a.splice(i,1); break; } i++; } 
context: XRai.removeElementFromArray = function (a,x) {   var id = parseInt(x.id);   var i = 0;   while (i < a.length && (compareDocumentPosition(a[i], x) & DOCUMENT_ORDER_BEFORE)) i++;   if (a[i] = x) a.splice(i,1);}
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/54ec3394e56995837ac14240ddfe00752d141a15/article.js/clean/trunk/js/article.js