From 31ca68739126f5740681238539a8c6a1b66e0000 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 18 Nov 2016 09:28:08 -0500 Subject: mass formatting and normalization - tweaked JSBeautify options --- www/js/ionicUtils.js | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'www/js/ionicUtils.js') diff --git a/www/js/ionicUtils.js b/www/js/ionicUtils.js index ae05293b..c593624c 100644 --- a/www/js/ionicUtils.js +++ b/www/js/ionicUtils.js @@ -6,22 +6,27 @@ angular.module('ionic.utils', []) -.factory('$localstorage', ['$window', function($window) { - return { +.factory('$localstorage', ['$window', function($window) +{ + return { - init: function() {}, + init: function() {}, - set: function(key, value) { - $window.localStorage[key] = value; - }, - get: function(key, defaultValue) { - return $window.localStorage[key] || defaultValue; - }, - setObject: function(key, value) { - $window.localStorage[key] = JSON.stringify(value); - }, - getObject: function(key) { - return JSON.parse($window.localStorage[key] || '{}'); - } - }; -}]); \ No newline at end of file + set: function(key, value) + { + $window.localStorage[key] = value; + }, + get: function(key, defaultValue) + { + return $window.localStorage[key] || defaultValue; + }, + setObject: function(key, value) + { + $window.localStorage[key] = JSON.stringify(value); + }, + getObject: function(key) + { + return JSON.parse($window.localStorage[key] || '{}'); + } + }; +}]); -- cgit v1.2.3