rem: addListener: function (ident, filter, listener) { /***  Add a listener for log messages.  ident is a unique identifier that may be used to remove the listener later on.  filter can be one of the following: null: listener(msg) will be called for every log message received.  string: logLevelAtLeast(filter) will be used as the function (see below).  function: filter(msg) will be called for every msg, if it returns true then listener(msg) will be called.  listener is a function that takes one argument, a log message.  A log message has three properties:  num: A counter that uniquely identifies a log message (per-logger)  level: A string or number representing the log level.  If string, you may want to use LogLevel[level] for comparison.  info: A list of objects passed as arguments to the log function.  ***/   if (typeof(filter) == 'string') { filter = MochiKit.Logging.logLevelAtLeast(filter); } var entry = [filter, listener]; entry.ident = ident; this.listeners[ident] = entry; }, 
add: },addListener:function(_194,_195,_196){ if(typeof (_195)=="string"){ _195=MochiKit.Logging.logLevelAtLeast(_195); } var _197=[_195,_196]; _197.ident=_194; this.listeners[_194]=_197; },removeListener:function(_198){ 
context:     addListener: function (ident, filter, listener) {        /***            Add a listener for log messages.            ident is a unique identifier that may be used to remove the listener            later on.            filter can be one of the following:                null:                    listener(msg) will be called for every log message                    received.                string:                    logLevelAtLeast(filter) will be used as the function                    (see below).                function:                    filter(msg) will be called for every msg, if it returns                    true then listener(msg) will be called.            listener is a function that takes one argument, a log message.  A log            message has three properties:                num:                    A counter that uniquely identifies a log message (per-logger)                level:                    A string or number representing the log level.  If string, you                    may want to use LogLevel[level] for comparison.                info:                    A list of objects passed as arguments to the log function.        ***/        if (typeof(filter) == 'string') {            filter = MochiKit.Logging.logLevelAtLeast(filter);        }        var entry = [filter, listener];        entry.ident = ident;        this.listeners[ident] = entry;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js