demos/Collage/fabric.js
function () {
      this.clear();
      if (this.interactive) {
        removeListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
        removeListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
        removeListener(fabric.window, 'resize', this._onResize);
      }
      return this;
    }
function () {
      this.clear();
      if (this.interactive) {
        removeListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
        removeListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
        removeListener(fabric.window, 'resize', this._onResize);
      }
      return this;
    }
function ( ) { this . clear ( ) ; if ( this . interactive ) { removeListener ( this . upperCanvasEl , 'mousedown' , this . _onMouseDown ) ; removeListener ( this . upperCanvasEl , 'mousemove' , this . _onMouseMove ) ; removeListener ( fabric . window , 'resize' , this . _onResize ) ; } return this ; }
Clears a canvas element and removes all event handlers.
@method dispose
@return {fabric.Canvas} thisArg
@chainable
Clears a canvas element and removes all event handlers .