rem: MochiKit.Signal.Event.prototype.repr = function () { var repr = MochiKit.Base.repr; var str = '{event(): ' + repr(this.event()) + ', type(): ' + repr(this.type()) + ', target(): ' + repr(this.target()) + ', modifier(): ' + '{alt: ' + repr(this.modifier().alt) + ', ctrl: ' + repr(this.modifier().ctrl) + ', meta: ' + repr(this.modifier().meta) + ', shift: ' + repr(this.modifier().shift) + '}';  if (this.type() && this.type().indexOf('key') === 0) { str += ', key(): {code: ' + repr(this.key().code) + ', string: ' + repr(this.key().string) + '}'; }  if (this.type() && ( this.type().indexOf('mouse') === 0 || this.type().indexOf('click') != -1 || this.type() == 'contextmenu')) {  str += ', mouse(): {page: ' + repr(this.mouse().page) + ', client: ' + repr(this.mouse().client);  if (this.type() != 'mousemove') { str += ', button: {left: ' + repr(this.mouse().button.left) + ', middle: ' + repr(this.mouse().button.middle) + ', right: ' + repr(this.mouse().button.right) + '}}'; } else { str += '}'; } } if (this.type() == 'mouseover' || this.type() == 'mouseout') { str += ', relatedTarget(): ' + repr(this.relatedTarget()); } str += '}'; return str; 
add: MochiKit.DOM.Coordinates.prototype.repr=function(){ var repr=MochiKit.Base.repr; return "{x: "+repr(this.x)+", y: "+repr(this.y)+"}"; 
context: MochiKit.Signal.Event.prototype.repr = function () {    var repr = MochiKit.Base.repr;    var str = '{event(): ' + repr(this.event()) +        ', type(): ' + repr(this.type()) +        ', target(): ' + repr(this.target()) +        ', modifier(): ' + '{alt: ' + repr(this.modifier().alt) +        ', ctrl: ' + repr(this.modifier().ctrl) +        ', meta: ' + repr(this.modifier().meta) +        ', shift: ' + repr(this.modifier().shift) + '}';    if (this.type() && this.type().indexOf('key') === 0) {        str += ', key(): {code: ' + repr(this.key().code) +            ', string: ' + repr(this.key().string) + '}';    }    if (this.type() && (        this.type().indexOf('mouse') === 0 ||        this.type().indexOf('click') != -1 ||        this.type() == 'contextmenu')) {        str += ', mouse(): {page: ' + repr(this.mouse().page) +            ', client: ' + repr(this.mouse().client);        if (this.type() != 'mousemove') {            str += ', button: {left: ' + repr(this.mouse().button.left) +                ', middle: ' + repr(this.mouse().button.middle) +                ', right: ' + repr(this.mouse().button.right) + '}}';        } else {            str += '}';        }    }    if (this.type() == 'mouseover' || this.type() == 'mouseout') {        str += ', relatedTarget(): ' + repr(this.relatedTarget());    }    str += '}';    return str;};
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js