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); } });