Skip to content

Commit

Permalink
fixed linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlison committed Jun 25, 2015
1 parent f5b23c2 commit 322b277
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ Box.Application.addModule('flame-graph', function(context) {
.attr("y", function(d) { return yPosClick(d) + y(d.y + d.dy) - y(d.y); })
.attr("width", function(d) { return x(d.x + d.dx) - x(d.x); })
.attr("height", function(d) { return y(d.y + d.dy) - y(d.y); })
.transition().each("end", zoomFinish);
}

function zoomFinish(d) {
var width = x(d.x + d.dx) - x(d.x) - 10;
this.style.visibility = width > this.getComputedTextLength() ? '' : 'hidden';
.transition().each("end", function (d) {
var width = x(d.x + d.dx) - x(d.x) - 10;
this.style.visibility = width > this.getComputedTextLength() ? '' : 'hidden';
});
}

function createFlameGraph() {
Expand Down

0 comments on commit 322b277

Please sign in to comment.