Skip to content

Commit

Permalink
The method already exists in Item.gs (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
urpizu authored Jan 11, 2019
1 parent 07270a4 commit a99d6ed
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions table.gs
Original file line number Diff line number Diff line change
Expand Up @@ -448,20 +448,6 @@ Table.prototype.sortBy = function(key, ascending) {
};


/**
* Method to set background color for a given item.
* @param {object} item: An item object.
* @param {string} color: The color we want as background.
* @return {object} item: The mutated item.
*/
Table.prototype.setItemBackground = function (item, color) {
for (var field in item.fields) {
item.setFieldBackground(field, color);
}
return item;
};


/**
* Method to clear background colors on every items.
* @return {Range}: The range of items which had their background cleaned. {Undefined} if the items range is empty.
Expand Down

0 comments on commit a99d6ed

Please sign in to comment.