From 61835602f90464cc8deac5c6ead03402d7ec1c95 Mon Sep 17 00:00:00 2001 From: Kienz Date: Sun, 29 Sep 2013 09:49:41 +0200 Subject: [PATCH] Remove `toGrayscale` from `fabric.PathGroup` and `fabric.Collection` --- src/mixins/collection.mixin.js | 10 ---------- src/shapes/path_group.class.js | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/src/mixins/collection.mixin.js b/src/mixins/collection.mixin.js index 650d8eef..dc4df82f 100644 --- a/src/mixins/collection.mixin.js +++ b/src/mixins/collection.mixin.js @@ -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(); - }); } }; diff --git a/src/shapes/path_group.class.js b/src/shapes/path_group.class.js index c051e938..bfeacb02 100644 --- a/src/shapes/path_group.class.js +++ b/src/shapes/path_group.class.js @@ -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