diff --git a/src/js/controller.js b/src/js/controller.js index a0b8da9..5a6e040 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -8,9 +8,9 @@ angular.module('focaBotoneraFacturador') ordenarBotones(); }; - this.$onChanges = function(p) { + this.$onChanges = function() { ordenarBotones(); - } + }; function nombreFuncion(string) { var texto = 'seleccionar'; @@ -33,7 +33,7 @@ angular.module('focaBotoneraFacturador') $scope.existeFuncionDelete = function(variable) { if ($scope.$parent['clean' + variable]) return true; return false; - } + }; function ordenarBotones() { $scope.botones = $scope.$ctrl.botones;