diff options
author | Hendrik Leppelsack <hendrik@leppelsack.de> | 2016-01-14 11:40:45 +0100 |
---|---|---|
committer | Hendrik Leppelsack <hendrik@leppelsack.de> | 2016-01-14 11:40:45 +0100 |
commit | 67d407ba6ec7ac69b72030f9a909a8039da1dafb (patch) | |
tree | fec6e5dedf9bfc5536e79cda83e0a4eb2ab55dd3 | |
parent | da5962a0143269588cba1aacca200d430a874420 (diff) |
fix jslint warnings
-rw-r--r-- | js/components/contactList/contactList_controller.js | 2 | ||||
-rw-r--r-- | js/public/script.js | 29 | ||||
-rw-r--r-- | js/services/settings_service.js | 27 |
3 files changed, 28 insertions, 30 deletions
diff --git a/js/components/contactList/contactList_controller.js b/js/components/contactList/contactList_controller.js index 3a712353..5e949a4c 100644 --- a/js/components/contactList/contactList_controller.js +++ b/js/components/contactList/contactList_controller.js @@ -9,5 +9,5 @@ app.controller('contactlistCtrl', ['$scope', 'ContactService', 'Contact', functi ctrl.createContact = function() { ContactService.create(); - } + }; }]); diff --git a/js/public/script.js b/js/public/script.js index bff9c959..2cbf89ac 100644 --- a/js/public/script.js +++ b/js/public/script.js @@ -143,7 +143,7 @@ app.controller('contactlistCtrl', ['$scope', 'ContactService', 'Contact', functi ctrl.createContact = function() { ContactService.create(); - } + }; }]); app.directive('contactlist', function() { @@ -442,24 +442,23 @@ app.service('DavService', ['DavClient', function(client) { }]); app.service('SettingsService', function() { - - var settings = { - addressBooks: [ - "testAddr" - ] - }; + var settings = { + addressBooks: [ + "testAddr" + ] + }; this.set = function(key, value) { - settings[key] = value; - }; + settings[key] = value; + }; - this.get = function(key) { - return settings[key]; - }; + this.get = function(key) { + return settings[key]; + }; - this.getAll = function() { - return settings; - } + this.getAll = function() { + return settings; + }; }); app.filter('JSON2vCard', function() { diff --git a/js/services/settings_service.js b/js/services/settings_service.js index 6f298881..103b8ca5 100644 --- a/js/services/settings_service.js +++ b/js/services/settings_service.js @@ -1,20 +1,19 @@ app.service('SettingsService', function() { - - var settings = { - addressBooks: [ - "testAddr" - ] - }; + var settings = { + addressBooks: [ + "testAddr" + ] + }; this.set = function(key, value) { - settings[key] = value; - }; + settings[key] = value; + }; - this.get = function(key) { - return settings[key]; - }; + this.get = function(key) { + return settings[key]; + }; - this.getAll = function() { - return settings; - } + this.getAll = function() { + return settings; + }; }); |