rem: HTMLArea.prototype._stylistAddClasses = function(el, tag, classes) { if(el == 'new') { this.insertHTML('<' + tag + ' class="' + classes + '">' + this.getSelectedHTML() + '</' + tag + '>'); } else { if(tag != null && el.tagName.toLowerCase() != tag) {  var new_el = this.switchElementTag(el, tag);  if(typeof el._stylist_usedToBe != 'undefined') { new_el._stylist_usedToBe = el._stylist_usedToBe; new_el._stylist_usedToBe[new_el._stylist_usedToBe.length] = {'tagName' : el.tagName, 'className' : el.getAttribute('class')}; } else { new_el._stylist_usedToBe = [{'tagName' : el.tagName, 'className' : el.getAttribute('class')}]; }  HTMLArea.addClasses(new_el, classes); } else { HTMLArea._addClasses(el, classes); } } this.focusEditor(); this.updateToolbar(); }; 
add: HTMLArea.prototype._stylistAddClasses=function(el,tag,_17){ if(el=="new"){ this.insertHTML("<"+tag+" class=\""+_17+"\">"+this.getSelectedHTML()+"</"+tag+">"); }else{ if(tag!=null&&el.tagName.toLowerCase()!=tag){ var _18=this.switchElementTag(el,tag); if(typeof el._stylist_usedToBe!="undefined"){ _18._stylist_usedToBe=el._stylist_usedToBe; _18._stylist_usedToBe[_18._stylist_usedToBe.length]={"tagName":el.tagName,"className":el.getAttribute("class")}; }else{ _18._stylist_usedToBe=[{"tagName":el.tagName,"className":el.getAttribute("class")}]; } HTMLArea.addClasses(_18,_17); }else{ HTMLArea._addClasses(el,_17); } } this.focusEditor(); this.updateToolbar(); }; 
context: HTMLArea.prototype._stylistAddClasses = function(el, tag, classes)  {    if(el == 'new')    {      this.insertHTML('<' + tag + ' class="' + classes + '">' + this.getSelectedHTML() + '</' + tag + '>');    }    else    {      if(tag != null && el.tagName.toLowerCase() != tag)      {        // Have to change the tag!        var new_el = this.switchElementTag(el, tag);        if(typeof el._stylist_usedToBe != 'undefined')        {          new_el._stylist_usedToBe = el._stylist_usedToBe;          new_el._stylist_usedToBe[new_el._stylist_usedToBe.length] = {'tagName' : el.tagName, 'className' : el.getAttribute('class')};        }        else        {          new_el._stylist_usedToBe = [{'tagName' : el.tagName, 'className' : el.getAttribute('class')}];        }        HTMLArea.addClasses(new_el, classes);      }      else      {        HTMLArea._addClasses(el, classes);      }    }    this.focusEditor();    this.updateToolbar();  };
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/stylist.js/buggy/packages/acs-templating/www/resources/xinha-nightly/plugins/Stylist/stylist.js