Skip to content

Commit

Permalink
Merge pull request #177 from flatline/patch-1
Browse files Browse the repository at this point in the history
Add var declaration to avoid global variable scope
  • Loading branch information
cpettitt committed Jun 12, 2015
2 parents 5050d91 + f4d8a83 commit 0e30c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/label/add-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function addLabel(root, node, location) {
}

var labelBBox = labelSvg.node().getBBox();
var y;
switch(location) {
case "top":
y = (-node.height / 2);
Expand Down

0 comments on commit 0e30c12

Please sign in to comment.