code: function(ctx) {
        var activeGroup = this.getActiveGroup();
        if (activeGroup) {
          ctx.save();
          fabric.Group.prototype.transform.call(activeGroup, ctx);
          activeGroup.drawBorders(ctx).drawCorners(ctx);
          ctx.restore();
        }
        else {
          for (var i = 0, len = this._objects.length; i < len; ++i) {
            if (!this._objects[i].active) continue;
  
            ctx.save();
            fabric.Object.prototype.transform.call(this._objects[i], ctx);
            this._objects[i].drawBorders(ctx).drawCorners(ctx);
            ctx.restore();
          }
        }
      }
docs: Draws objects' controls (borders/corners)
  @method drawControls
  @param {Object} ctx context to render controls on