From 3455ab80618e37a291ae9b1b4cb11ccd99960dae Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 9 Oct 2019 09:33:37 -0300 Subject: [PATCH] arreglos identacion y variable --- src/js/controller.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index f4badf0..b8207ff 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -132,16 +132,8 @@ angular.module('focaCrearCobranza').controller('cobranzaController', focaBotoneraLateralService.startGuardar(); $scope.saveLoading = true; var rutaJson = JSON.parse($localStorage.rutas); - function removeItemFromArr ( arr, item ) { - var i = arr.indexOf( item ); - - if ( i !== -1 ) { - arr.splice( i, 1 ); - } - } - - removeItemFromArr( rutaJson, 'cobranza/crear' ); - $localStorage.rutas = JSON.stringify(rutaJson); + removeItemFromArr( rutaJson, 'cobranza/crear' ); + $localStorage.rutas = JSON.stringify(rutaJson); for (var i = 0; i < $scope.cobranza.facturas.length; i++) { var cuerpoFactura = { CYV: 'V', -- 1.9.1