From 4599c9bb0fe511f685d96b79133e2c398ea0fe43 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Wed, 15 Aug 2012 17:27:59 -0700 Subject: [PATCH] jsonTree directive code cleanup --- js/directives/jsonTree.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/directives/jsonTree.js b/js/directives/jsonTree.js index f7bf857..a2d3aca 100644 --- a/js/directives/jsonTree.js +++ b/js/directives/jsonTree.js @@ -11,9 +11,6 @@ panelApp.directive('batJsonTree', function($compile) { // this is more complicated then it should be // see: https://github.com/angular/angular.js/issues/898 - //var childScope = scope.$new(); - - var buildDom = function (object) { var html = ''; if (object == undefined) { @@ -38,9 +35,7 @@ panelApp.directive('batJsonTree', function($compile) { }; scope.$watch('val', function (newVal, oldVal) { - // TODO: clean up scopes element.html(buildDom(newVal)); - //$compile(element.contents())(scope); }); } };