From 442fc72eee0187f0d10ee0cfa155e16493137e23 Mon Sep 17 00:00:00 2001 From: Jeff Storey Date: Wed, 30 Mar 2016 08:02:42 -0400 Subject: [PATCH] variable scoping --- static/scripts/repo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/scripts/repo.js b/static/scripts/repo.js index 47d456fac..582e8d1dc 100644 --- a/static/scripts/repo.js +++ b/static/scripts/repo.js @@ -19,8 +19,8 @@ function RepoViewModel(repo) { // construct the build entry if it doesn't already exist // so that we can append to the DOM. The code may not be // pretty, but it is simple enough and it works. - authoredOrDeployed = "authored" - branchOrDeploy = data.branch + var authoredOrDeployed = "authored" + var branchOrDeploy = data.branch if ( data.event == "deployment" ) { authoredOrDeployed = "deployed" branchOrDeploy = data.deploy_to