demos/Collage/fabric.js
function (ctx, object) {
      if (!object) return;

      if (this.controlsAboveOverlay) {
        var hasBorders = object.hasBorders, hasCorners = object.hasCorners;
        object.hasBorders = object.hasCorners = false;
        object.render(ctx);
        object.hasBorders = hasBorders;
        object.hasCorners = hasCorners;
      }
      else {
        object.render(ctx);
      }
    }
function (ctx, object) {
      if (!object) return;

      if (this.controlsAboveOverlay) {
        var hasBorders = object.hasBorders, hasCorners = object.hasCorners;
        object.hasBorders = object.hasCorners = false;
        object.render(ctx);
        object.hasBorders = hasBorders;
        object.hasCorners = hasCorners;
      }
      else {
        object.render(ctx);
      }
    }
function ( ctx , object ) { if ( ! object ) return ; if ( this . controlsAboveOverlay ) { var hasBorders = object . hasBorders , hasCorners = object . hasCorners ; object . hasBorders = object . hasCorners = false ; object . render ( ctx ) ; object . hasBorders = hasBorders ; object . hasCorners = hasCorners ; } else { object . render ( ctx ) ; } }
Given a context, renders an object on that context
@param ctx {Object} context to render object on
@param object {Object} object to render
@private
Given a context renders an object on that context