From 5ad2511c3b8450451cc042f6dfe7c5a82ef5aea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Mon, 7 May 2012 13:31:15 +0300 Subject: [PATCH] Fix globally exposed variables. --- jquery.jOrgChart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.jOrgChart.js b/jquery.jOrgChart.js index 89411b2..b1b67a9 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); @@ -205,7 +205,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);