mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
(js) Make use of 'controllerAs' in MainUI module
This commit is contained in:
@@ -26,9 +26,6 @@
|
||||
// TODO: convert to a Factory recipe?
|
||||
.provider('Authentication', Authentication);
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function Authentication() {
|
||||
function readCookie(name) {
|
||||
var foundCookie, prefix, pairs, i, currentPair, start;
|
||||
@@ -91,9 +88,11 @@
|
||||
|
||||
this.$get = getService;
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
getService.$inject = ['$q', '$http', 'passwordPolicyConfig'];
|
||||
function getService($q, $http, passwordPolicyConfig) {
|
||||
|
||||
var _this = this, service;
|
||||
|
||||
service = {
|
||||
|
||||
Reference in New Issue
Block a user