Skip to content

Commit

Permalink
Add most of the unit tests for fabric.util methods. Fix fabricjs#35.
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Dec 1, 2012
1 parent d2c152b commit 7a3d816
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions all.js
Original file line number Diff line number Diff line change
Expand Up @@ -5122,6 +5122,8 @@ fabric.util.string = {
* Indicates whether fabric.Canvas#add should also re-render canvas.
* Disabling this option could give a great performance boost when adding a lot of objects to canvas at once
* (followed by a manual rendering after addition)
* @property
* @type Boolean
*/
renderOnAddition: true,

Expand Down Expand Up @@ -5385,12 +5387,20 @@ fabric.util.string = {
return this.lowerCanvasEl;
},

// placeholder
/**
* Returns currently selected object, if any
* @method getActiveObject
* @return {fabric.Object}
*/
getActiveObject: function() {
return null;
},

// placeholder
/**
* Returns currently selected group of object, if any
* @method getActiveGroup
* @return {fabric.Group}
*/
getActiveGroup: function() {
return null;
},
Expand Down Expand Up @@ -5420,6 +5430,7 @@ fabric.util.string = {
* Adds objects to canvas, then renders canvas;
* Objects should be instances of (or inherit from) fabric.Object
* @method add
* @param [...] Zero or more fabric instances
* @return {fabric.Canvas} thisArg
* @chainable
*/
Expand Down
Binary file modified all.min.js.gz
Binary file not shown.

0 comments on commit 7a3d816

Please sign in to comment.