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