rem: var toolbar = this.toolbar; for (var i = toolbar.length; --i >= 0;) { var line = toolbar[i]; for (var j = line.length; --j >= 0; ) { if (remove.indexOf(" " + line[j] + " ") >= 0) { var len = 1; if (/separator|space/.test(line[j + 1])) { len = 2; } line.splice(j, len); } } } 
add: var toolbar = this.toolbar; for (var i in toolbar) { var line = toolbar[i]; for (var j = line.length; --j >= 0; ) { if (remove.indexOf(" " + line[j] + " ") >= 0) { var len = 1; if (/separator|space/.test(line[j + 1])) { len = 2; } line.splice(j, len); } } } 
context: HTMLArea.Config.prototype.hideSomeButtons = function(remove) {  var toolbar = this.toolbar;  for (var i = toolbar.length; --i >= 0;) {    var line = toolbar[i];    for (var j = line.length; --j >= 0; ) {      if (remove.indexOf(" " + line[j] + " ") >= 0) {        var len = 1;        if (/separator|space/.test(line[j + 1])) {          len = 2;        }        line.splice(j, len);      }    }  }};
meta: 6230	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6230/70e7091322d161ad5e2256481886617b9211a07f/htmlarea.js/buggy/phpgwapi/js/htmlarea/htmlarea.js