From f964511f73a93ee070c5fd1523485bd82bd586e3 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Tue, 16 Oct 2018 16:35:58 -0300 Subject: [PATCH] nombres descriptivos para las variables --- src/js/service.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/service.js b/src/js/service.js index b20c5d0..e8a1bd3 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -3,27 +3,27 @@ angular.module('focaModal') '$uibModal', function($uibModal) { return { - confirm: function(a) { + confirm: function(textoModal) { return $uibModal.open({ templateUrl: 'modal-confirm.html', controller: 'focaModalConfirmController', animation: false, backdrop: false, - resolve: { text: function() { return a; } } + resolve: { text: function() { return textoModal; } } }) .result.then( - function(p) { - return p; + function(resultado) { + return resultado; } ); }, - alert: function(a) { + alert: function(textoModal) { return $uibModal.open({ templateUrl: 'modal-alert.html', controller: 'focaModalAlertController', animation: false, backdrop: false, - resolve: { text: function() { return a; } } + resolve: { text: function() { return textoModal; } } }); } }; -- 1.9.1