rem: var the_id; if (typeof id == "string") { the_id = id; } else if (typeof id == "object") { the_id = id.id; } else { alert("ERROR [HTMLArea.Config::registerButton]:\ninvalid arguments"); return false; }  if (typeof this.customSelects[the_id] != "undefined") {  } if (typeof this.btnList[the_id] != "undefined") {  } switch (typeof id) { case "string": this.btnList[id] = [ tooltip, image, textMode, action, context ]; break; case "object": this.btnList[id.id] = [ id.tooltip, id.image, id.textMode, id.action, id.context ]; break; } 
add: var the_id; if (typeof id == "string") { the_id = id; } else if (typeof id == "object") { the_id = id.id; } else { alert("ERROR [HTMLArea.Config::registerButton]:\ninvalid arguments"); return false; }  if (typeof this.customSelects[the_id] != "undefined") {  } if (typeof this.btnList[the_id] != "undefined") {  } switch (typeof id) { case "string": this.btnList[id] = [ tooltip, image, textMode, action, context ]; break; case "object": this.btnList[id.id] = [ id.tooltip, id.image, id.textMode, id.action, id.context ]; break; } 
context: HTMLArea.Config.prototype.registerButton = function(id, tooltip, image, textMode, action, context) {  var the_id;  if (typeof id == "string") {    the_id = id;  } else if (typeof id == "object") {    the_id = id.id;  } else {    alert("ERROR [HTMLArea.Config::registerButton]:\ninvalid arguments");    return false;  }  // check for existing id  if (typeof this.customSelects[the_id] != "undefined") {    // alert("WARNING [HTMLArea.Config::registerDropdown]:\nA dropdown with the same ID already exists.");  }  if (typeof this.btnList[the_id] != "undefined") {    // alert("WARNING [HTMLArea.Config::registerDropdown]:\nA button with the same ID already exists.");  }  switch (typeof id) {      case "string": this.btnList[id] = [ tooltip, image, textMode, action, context ]; break;      case "object": this.btnList[id.id] = [ id.tooltip, id.image, id.textMode, id.action, id.context ]; break;  }};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/htmlarea.js/clean/phpgwapi/js/htmlarea/htmlarea.js