Remove toGrayscale from fabric.PathGroup and fabric.Collection

This commit is contained in:
Kienz 2013-09-29 09:49:41 +02:00
parent 12f272d2fc
commit 61835602f9
2 changed files with 0 additions and 22 deletions

View file

@ -122,15 +122,5 @@ fabric.Collection = {
memo += current.complexity ? current.complexity() : 0;
return memo;
}, 0);
},
/**
* Makes all of the collection objects grayscale (i.e. calling `toGrayscale` on them)
* @return {Self} thisArg
*/
toGrayscale: function() {
return this.forEachObject(function(obj) {
obj.toGrayscale();
});
}
};

View file

@ -185,18 +185,6 @@
}, 0);
},
/**
* Makes path group grayscale
* @return {fabric.PathGroup} thisArg
*/
toGrayscale: function() {
var i = this.paths.length;
while (i--) {
this.paths[i].toGrayscale();
}
return this;
},
/**
* Returns all paths in this path group
* @return {Array} array of path objects included in this path group