demos/Collage/fabric.js
function () {
      var activeObject = this.getActiveGroup() || this.getActiveObject();
      if (activeObject) {
        this.fire('before:selection:cleared', { target: activeObject });
      }
      this.deactivateAll();
      if (activeObject) {
        this.fire('selection:cleared');
      }
      return this;
    }
function () {
      var activeObject = this.getActiveGroup() || this.getActiveObject();
      if (activeObject) {
        this.fire('before:selection:cleared', { target: activeObject });
      }
      this.deactivateAll();
      if (activeObject) {
        this.fire('selection:cleared');
      }
      return this;
    }
function ( ) { var activeObject = this . getActiveGroup ( ) || this . getActiveObject ( ) ; if ( activeObject ) { this . fire ( 'before:selection:cleared' , { target : activeObject } ) ; } this . deactivateAll ( ) ; if ( activeObject ) { this . fire ( 'selection:cleared' ) ; } return this ; }
Deactivates all objects and dispatches appropriate events
@method deactivateAllWithDispatch
@return {fabric.Canvas} thisArg
Deactivates all objects and dispatches appropriate events