rem: signal: function (src, sig) { /***  This will signal a signal, passing whatever additional parameters on to the connected slots. 'src' and 'signal' are the same as for 'connect()'.  ***/ if (typeof(src) == 'string') { src = MochiKit.DOM.getElement(src); }  if (typeof(sig) != 'string') { throw new Error("'signal' must be a string"); }  if (!src.__signals || !src.__signals[sig]) { if (src.addEventListener || src.attachEvent || src[sig]) {  return; } else { throw new Error("No such signal '" + sig + "'"); } } var slots = src.__signals[sig];  var args = MochiKit.Base.extend(null, arguments, 2);  var slot; var errors = []; for (var i = 0; i < slots.length; i++) { slot = slots[i]; try { if (slot.length == 1) { slot[0].apply(src, args); } else { if (typeof(slot[1]) == 'string') { slot[0][slot[1]].apply(slot[0], args); } else { slot[1].apply(slot[0], args); } } } catch (e) { errors.push(e); } } if (errors.length) { var e = new Error("There were errors in handling signal 'sig'."); e.errors = errors; throw e; } }, 
add: },signal:function(src,sig){ if(typeof (src)=="string"){ src=MochiKit.DOM.getElement(src); } if(typeof (sig)!="string"){ throw new Error("'signal' must be a string"); } if(!src._signals||!src._signals[sig]){ if(src.addEventListener||src.attachEvent||src[sig]){ return; }else{ throw new Error("No such signal '"+sig+"'"); } } var _543=src._signals[sig]; var args=MochiKit.Base.extend(null,arguments,2); var slot; var _544=[]; for(var i=0;i<_543.length;i++){ slot=_543[i]; try{ if(slot.length==1){ slot[0].apply(src,args); }else{ if(typeof (slot[1])=="string"){ slot[0][slot[1]].apply(slot[0],args); }else{ slot[1].apply(slot[0],args); } } } catch(e){ _544.push(e); } } if(_544.length==1){ throw _544[0]; }else{ if(_544.length){ var e=new Error("There were errors in handling signal 'sig'."); e.errors=_544; throw e; } } },registerSignals:function(src,_545){ 
context:     signal: function (src, sig) {        /***        This will signal a signal, passing whatever additional parameters        on to the connected slots. 'src' and 'signal' are the same as for        'connect()'.        ***/        if (typeof(src) == 'string') {            src = MochiKit.DOM.getElement(src);        }        if (typeof(sig) != 'string') {            throw new Error("'signal' must be a string");        }        if (!src.__signals || !src.__signals[sig]) {            if (src.addEventListener || src.attachEvent || src[sig]) {                // Ignored.                return;            } else {                throw new Error("No such signal '" + sig + "'");            }        }        var slots = src.__signals[sig];        var args = MochiKit.Base.extend(null, arguments, 2);        var slot;        var errors = [];        for (var i = 0; i < slots.length; i++) {            slot = slots[i];            try {                if (slot.length == 1) {                    slot[0].apply(src, args);                } else {                    if (typeof(slot[1]) == 'string') {                        slot[0][slot[1]].apply(slot[0], args);                    } else {                        slot[1].apply(slot[0], args);                    }                }            } catch (e) {                errors.push(e);            }        }        if (errors.length) {            var e = new Error("There were errors in handling signal 'sig'.");            e.errors = errors;            throw e;        }    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js