rem: addElementClass: function (element, className) { /***  Ensure that the given element has className set as part of its class attribute.  This will not disturb other class names.  ***/ var self = MochiKit.DOM; var obj = self.getElement(element); var cls = obj.className;  if (cls.length === 0) { self.setElementClass(obj, className); return true; }  if (cls == className) { return false; } var classes = obj.className.split(" "); for (var i = 0; i < classes.length; i++) {  if (classes[i] == className) { return false; } }  self.setElementClass(obj, cls + " " + className); return true; }, 
add: },addElementClass:function(_376,_377){ var self=MochiKit.DOM; var obj=self.getElement(_376); var cls=obj.className; if(cls.length===0){ self.setElementClass(obj,_377); return true; } if(cls==_377){ return false; } var _379=obj.className.split(" "); for(var i=0;i<_379.length;i++){ if(_379[i]==_377){ return false; } } self.setElementClass(obj,cls+" "+_377); return true; },removeElementClass:function(_380,_381){ 
context:     addElementClass: function (element, className) {        /***            Ensure that the given element has className set as part of its            class attribute.  This will not disturb other class names.        ***/        var self = MochiKit.DOM;        var obj = self.getElement(element);        var cls = obj.className;        // trivial case, no className yet        if (cls.length === 0) {            self.setElementClass(obj, className);            return true;        }        // the other trivial case, already set as the only class        if (cls == className) {            return false;        }        var classes = obj.className.split(" ");        for (var i = 0; i < classes.length; i++) {            // already present            if (classes[i] == className) {                return false;            }        }        // append class        self.setElementClass(obj, cls + " " + className);        return true;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js