Skip to content

Commit

Permalink
Merge pull request #2135 from sapics/fix_coding_style
Browse files Browse the repository at this point in the history
fix only coding style
  • Loading branch information
kangax committed Apr 21, 2015
2 parents 18f1a33 + fe65503 commit 42b3960
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/shapes/group.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,14 @@
* @private
*/
_renderObject: function(object, ctx) {
var originalHasRotatingPoint = object.hasRotatingPoint;

// do not render if object is not visible
if (!object.visible) {
return;
}

var originalHasRotatingPoint = object.hasRotatingPoint;
object.hasRotatingPoint = false;

object.render(ctx);

object.hasRotatingPoint = originalHasRotatingPoint;
},

Expand Down
3 changes: 2 additions & 1 deletion src/shapes/object.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,8 @@
ctx.restore();
},

/* @private
/**
* @private
* @param {CanvasRenderingContext2D} ctx Context to render on
*/
_setOpacity: function(ctx) {
Expand Down
2 changes: 1 addition & 1 deletion src/static_canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@
}
},

/*
/**
* Restores the changed properties of instance
* @private
* @param {fabric.Object} [instance] the object to un-transform (gets mutated)
Expand Down

0 comments on commit 42b3960

Please sign in to comment.