function(editor) {
    this.editor = editor;
    event.addListener(editor.container, "mousedown", function(e) {
        editor.focus();
        return event.preventDefault(e);
    });
    event.addListener(editor.container, "selectstart", function(e) {
        return event.preventDefault(e);
    });
    
    var mouseTarget = editor.renderer.getMouseEventTarget();
    event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 4, 600, this.onMouseQuadClick.bind(this));
    event.addMouseWheelListener(mouseTarget, this.onMouseWheel.bind(this));
}
function(editor) {
    this.editor = editor;
    event.addListener(editor.container, "mousedown", function(e) {
        editor.focus();
        return event.preventDefault(e);
    });
    event.addListener(editor.container, "selectstart", function(e) {
        return event.preventDefault(e);
    });
    
    var mouseTarget = editor.renderer.getMouseEventTarget();
    event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
    event.addMultiMouseDownListener(mouseTarget, 0, 4, 600, this.onMouseQuadClick.bind(this));
    event.addMouseWheelListener(mouseTarget, this.onMouseWheel.bind(this));
}
function ( editor ) { this . editor = editor ; event . addListener ( editor . container , "mousedown" , function ( e ) { editor . focus ( ) ; return event . preventDefault ( e ) ; } ) ; event . addListener ( editor . container , "selectstart" , function ( e ) { return event . preventDefault ( e ) ; } ) ; var mouseTarget = editor . renderer . getMouseEventTarget ( ) ; event . addListener ( mouseTarget , "mousedown" , this . onMouseDown . bind ( this ) ) ; event . addMultiMouseDownListener ( mouseTarget , 0 , 2 , 500 , this . onMouseDoubleClick . bind ( this ) ) ; event . addMultiMouseDownListener ( mouseTarget , 0 , 3 , 600 , this . onMouseTripleClick . bind ( this ) ) ; event . addMultiMouseDownListener ( mouseTarget , 0 , 4 , 600 , this . onMouseQuadClick . bind ( this ) ) ; event . addMouseWheelListener ( mouseTarget , this . onMouseWheel . bind ( this ) ) ; }
pixels
pixels