From 4d753d057c8bed83a9f3cf566e6b6935ea6c81b5 Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Fri, 31 Jan 2014 10:28:15 -0500 Subject: [PATCH] Remove redundant variable --- app/directives/archetypeproperty.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/directives/archetypeproperty.js b/app/directives/archetypeproperty.js index 3eeaaf6..17dbef2 100644 --- a/app/directives/archetypeproperty.js +++ b/app/directives/archetypeproperty.js @@ -92,8 +92,6 @@ angular.module("umbraco").directive('archetypeProperty', function ($compile, $ht console.log(scope); } - var rawTemplate = data; - //define the initial model and config scope.model = {}; scope.model.config = {}; @@ -119,7 +117,7 @@ angular.module("umbraco").directive('archetypeProperty', function ($compile, $ht scope.archetypeRenderModel.fieldsets[scope.fieldsetIndex].properties[renderModelPropertyIndex].value = newValue; }); - element.html(rawTemplate).show(); + element.html(data).show(); $compile(element.contents())(scope); } });