diff --git a/jquery.jOrgChart.js b/jquery.jOrgChart.js index 627309c..22c3a0a 100644 --- a/jquery.jOrgChart.js +++ b/jquery.jOrgChart.js @@ -18,7 +18,7 @@ var $appendTo = $(opts.chartElement); // build the tree - $this = $(this); + var $this = $(this); var $container = $("
"); if($this.is("ul")) { buildNode($this.find("li:first"), $container, 0, opts); @@ -165,7 +165,7 @@ $downLineRow.append($downLineCell); // draw the connecting line from the parent node to the horizontal line - $downLine = $("").addClass("line down"); + var $downLine = $("").addClass("line down"); $downLineCell.append($downLine); $tbody.append($downLineRow);