rem: registerSignals: function (src, signals) { /***  This will register signals for the object 'src'. (Note that a string here is not allowed--you don't need to register signals for DOM objects.) 'signals' is an array of strings.  You may register the same signals multiple times; subsequent register calls with the same signal names will have no effect, and the existing connections, if any, will not be lost.  ***/ if (!src.__signals) { src.__signals = { /* __repr__: function () { var m = MochiKit.Base; var signals = m.items(this); signals = m.filter( function (a) { return a[0] != "__repr__"; }, signals ); signals.sort(m.compare); return ( '{\n    ' + m.map( function (a) { return m.map(m.repr, a).join(": ") }, signals ).join(",\n    ") + "\n}" ); } */ }; }  for (var i = 0; i < signals.length; i++) { var sig = signals[i]; if (!src.__signals[sig]) { src.__signals[sig] = []; } } } 
add: },registerSignals:function(src,_545){ if(!src._signals){ src._signals={}; } for(var i=0;i<_545.length;i++){ var sig=_545[i]; if(!src._signals[sig]){ src._signals[sig]=[]; } } }}); 
context:     registerSignals: function (src, signals) {        /***        This will register signals for the object 'src'. (Note that a string        here is not allowed--you don't need to register signals for DOM        objects.) 'signals' is an array of strings.        You may register the same signals multiple times; subsequent register        calls with the same signal names will have no effect, and the existing        connections, if any, will not be lost.        ***/        if (!src.__signals) {            src.__signals = {                /*                __repr__: function () {                    var m = MochiKit.Base;                    var signals = m.items(this);                    signals = m.filter(                        function (a) { return a[0] != "__repr__"; },                        signals                    );                    signals.sort(m.compare);                    return (                        '{\n    ' + m.map(                            function (a) {                                return m.map(m.repr, a).join(": ")                            },                            signals                        ).join(",\n    ") + "\n}"                    );                }                */            };        }        for (var i = 0; i < signals.length; i++) {            var sig = signals[i];            if (!src.__signals[sig]) {                src.__signals[sig] = [];            }        }    }
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js