Yangman - changed event strings to constants
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / directives / abn-tree.directive.js
index 138edb46dadf014cfbd0ec06e6766c148bc2227b..06358536e4a50c047d94a9aa0819aef005873e10 100644 (file)
@@ -194,9 +194,9 @@ define(['angular'], function (angular) {
 
                     };
 
-                    scope.$watch('tree_rows', function () {
+                    scope.$watch(constants.TREE_ROWS, function () {
                         scope.treeRows = scope.tree_rows;
-                        scope.$emit('SET_SCOPE_TREE_ROWS', scope.treeRows);
+                        scope.$emit(constants.SET_SCOPE_TREE_ROWS, scope.treeRows);
                     });
 
                     scope.tree_rows = [];