Yangman - changed event strings to constants
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / form / list.controller.js
index a5bf8d37794b5efc84d7eb01aa8479a985302116..86c72001856e6c44f159a2d24d984dc7ceecb8bd 100644 (file)
@@ -37,11 +37,11 @@ define([], function () {
         yangList.toggleExpanded = toggleExpanded;
 
         // WATCHERS
-        $scope.$on('EV_REFRESH_LIST_INDEX', function () {
+        $scope.$on(constants.EV_REFRESH_LIST_INDEX, function () {
             yangList.currentDisplayIndex = 1;
         });
 
-        $scope.$on('YANGMAN_DISABLE_ADDING_LIST_ELEMENT', function() {
+        $scope.$on(constants.YANGMAN_DISABLE_ADDING_LIST_ELEMENT, function() {
             yangList.init();
         });