code: function () {
        var allObjects = this.getObjects(),
            i = 0,
            len = allObjects.length;
        for ( ; i < len; i++) {
          allObjects[i].setActive(false);
        }
        this.discardActiveGroup();
        this.discardActiveObject();
        return this;
      }
docs: Deactivates all objects by calling their setActive(false)
  @method deactivateAll
  @return {fabric.Canvas} thisArg