Skip to content

Commit

Permalink
clean up unneeded bounds, add a missing empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Feb 20, 2019
1 parent 4cc6628 commit 4081f06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions src/elements/element.rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function parseBorderSkipped(bar) {
function parseBorderWidth(value, bar, maxWidth, maxHeight) {
var _skip = parseBorderSkipped(bar);
var t, r, b, l;

if (helpers.isObject(value)) {
t = +value.top || 0;
r = +value.right || 0;
Expand Down
7 changes: 0 additions & 7 deletions src/helpers/helpers.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,6 @@ var helpers = {

ChartElement.__super__ = me.prototype;
return ChartElement;
},

/**
* Returns value bounded by min and max. This is equivalent to max(min, min(value, max)).
*/
bound: function(min, value, max) {
return Math.max(min, Math.min(value, max));
}
};

Expand Down

0 comments on commit 4081f06

Please sign in to comment.