Use module.exports instead of exports

This commit is contained in:
Tankred Hase 2014-10-08 12:34:34 +02:00 committed by Felix Hammerl
parent d9a2c77aa4
commit 7a20049bbc
45 changed files with 45 additions and 45 deletions

View File

@ -265,4 +265,4 @@ self.onConnect = function(callback) {
}
};
exports = self;
module.exports = self;

View File

@ -448,4 +448,4 @@ Auth.prototype.logout = function(callback) {
});
};
exports = Auth;
module.exports = Auth;

View File

@ -226,4 +226,4 @@ OutboxBO.prototype._processOutbox = function(callback) {
}
};
exports = OutboxBO;
module.exports = OutboxBO;

View File

@ -26,4 +26,4 @@ var AboutCtrl = function($scope) {
//
};
exports = AboutCtrl;
module.exports = AboutCtrl;

View File

@ -56,4 +56,4 @@ var AccountCtrl = function($scope) {
};
};
exports = AccountCtrl;
module.exports = AccountCtrl;

View File

@ -115,4 +115,4 @@ var AddAccountCtrl = function($scope, $location, $routeParams) {
};
};
exports = AddAccountCtrl;
module.exports = AddAccountCtrl;

View File

@ -136,4 +136,4 @@ ngModule.directive('keyfileBtn', function() {
};
});
exports = ContactsCtrl;
module.exports = ContactsCtrl;

View File

@ -11,4 +11,4 @@ var DialogCtrl = function($scope) {
};
};
exports = DialogCtrl;
module.exports = DialogCtrl;

View File

@ -68,4 +68,4 @@ var LoginExistingCtrl = function($scope, $location, $routeParams) {
}
};
exports = LoginExistingCtrl;
module.exports = LoginExistingCtrl;

View File

@ -116,4 +116,4 @@ var LoginInitialCtrl = function($scope, $location, $routeParams) {
};
};
exports = LoginInitialCtrl;
module.exports = LoginInitialCtrl;

View File

@ -135,4 +135,4 @@ ngModule.directive('fileReader', function() {
};
});
exports = LoginExistingCtrl;
module.exports = LoginExistingCtrl;

View File

@ -129,4 +129,4 @@ var LoginPrivateKeyDownloadCtrl = function($scope, $location, $routeParams) {
};
};
exports = LoginPrivateKeyDownloadCtrl;
module.exports = LoginPrivateKeyDownloadCtrl;

View File

@ -115,4 +115,4 @@ var SetCredentialsCtrl = function($scope, $location, $routeParams) {
};
};
exports = SetCredentialsCtrl;
module.exports = SetCredentialsCtrl;

View File

@ -98,4 +98,4 @@ var LoginCtrl = function($scope, $location) {
}
};
exports = LoginCtrl;
module.exports = LoginCtrl;

View File

@ -593,4 +593,4 @@ function createDummyMails() {
return dummies;
}
exports = MailListCtrl;
module.exports = MailListCtrl;

View File

@ -203,4 +203,4 @@ ngModule.directive('keyShortcuts', function($timeout) {
};
});
exports = NavigationCtrl;
module.exports = NavigationCtrl;

View File

@ -40,4 +40,4 @@ ngModule.directive('popover', function() {
};
});
exports = PopoverCtrl;
module.exports = PopoverCtrl;

View File

@ -198,4 +198,4 @@ ngModule.directive('focusNext', function() {
};
});
exports = PrivateKeyUploadCtrl;
module.exports = PrivateKeyUploadCtrl;

View File

@ -280,4 +280,4 @@ ngModule.directive('frameLoad', function($timeout, $window) {
};
});
exports = ReadCtrl;
module.exports = ReadCtrl;

View File

@ -133,4 +133,4 @@ var SetPassphraseCtrl = function($scope) {
}
};
exports = SetPassphraseCtrl;
module.exports = SetPassphraseCtrl;

View File

@ -527,4 +527,4 @@ ngModule.directive('attachmentBtn', function() {
};
});
exports = WriteCtrl;
module.exports = WriteCtrl;

View File

@ -119,4 +119,4 @@ function startWorker(options) {
options.callback(null, result);
}
exports = Crypto;
module.exports = Crypto;

View File

@ -21,4 +21,4 @@ self.getKey = function(password, salt, keySize) {
return forge.util.encode64(key);
};
exports = self;
module.exports = self;

View File

@ -447,4 +447,4 @@ function checkSignatureValidity(signatures) {
return true;
}
exports = PGP;
module.exports = PGP;

View File

@ -58,4 +58,4 @@ AdminDAO.prototype.validateUser = function(options, callback) {
});
};
exports = AdminDAO;
module.exports = AdminDAO;

View File

@ -90,4 +90,4 @@ function createKey(i, type) {
return key;
}
exports = DeviceStorageDAO;
module.exports = DeviceStorageDAO;

View File

@ -1724,4 +1724,4 @@ function inlineExternalImages(message) {
});
}
exports = EmailDAO;
module.exports = EmailDAO;

View File

@ -57,4 +57,4 @@ InvitationDAO.prototype.invite = function(options, callback) {
}
};
exports = InvitationDAO;
module.exports = InvitationDAO;

View File

@ -933,4 +933,4 @@ KeychainDAO.prototype.saveLocalPrivateKey = function(privkey, callback) {
this._localDbDao.persist(prkLookupKey, privkey, callback);
};
exports = KeychainDAO;
module.exports = KeychainDAO;

View File

@ -213,4 +213,4 @@ LawnchairDAO.prototype.clear = function(callback) {
this._db.nuke(callback);
};
exports = LawnchairDAO;
module.exports = LawnchairDAO;

View File

@ -193,4 +193,4 @@ PrivateKeyDAO.prototype.download = function(options, callback) {
}, callback);
};
exports = PrivateKeyDAO;
module.exports = PrivateKeyDAO;

View File

@ -100,4 +100,4 @@ PublicKeyDAO.prototype.remove = function(keyId, callback) {
this._restDao.remove(uri, callback);
};
exports = PublicKeyDAO;
module.exports = PublicKeyDAO;

View File

@ -118,4 +118,4 @@ RestDAO.prototype._processRequest = function(options, callback) {
xhr.send(options.payload ? JSON.stringify(options.payload) : undefined);
};
exports = RestDAO;
module.exports = RestDAO;

View File

@ -52,4 +52,4 @@ function handleBackButton(event) {
}
}
exports = backBtnHandler;
module.exports = backBtnHandler;

View File

@ -290,4 +290,4 @@ function createError(code, message, underlyingError) {
return error;
}
exports = ConnectionDoctor;
module.exports = ConnectionDoctor;

View File

@ -55,4 +55,4 @@ dl.createDownload = function(options) {
}
};
exports = dl;
module.exports = dl;

View File

@ -30,4 +30,4 @@ er.attachHandler = function(scope) {
};
};
exports = er;
module.exports = er;

View File

@ -55,4 +55,4 @@ self.close = function(notification) {
notification.close();
};
exports = self;
module.exports = self;

View File

@ -96,4 +96,4 @@ OAuth.prototype.queryEmailAddress = function(token, callback) {
});
};
exports = OAuth;
module.exports = OAuth;

View File

@ -127,4 +127,4 @@ UpdateHandler.prototype.checkForUpdate = function(dialog) {
}
};
exports = UpdateHandler;
module.exports = UpdateHandler;

View File

@ -24,4 +24,4 @@ function updateV1(options, callback) {
});
}
exports = updateV1;
module.exports = updateV1;

View File

@ -23,4 +23,4 @@ function updateV2(options, callback) {
});
}
exports = updateV2;
module.exports = updateV2;

View File

@ -23,4 +23,4 @@ function update(options, callback) {
});
}
exports = update;
module.exports = update;

View File

@ -100,4 +100,4 @@ function update(options, callback) {
}
}
exports = update;
module.exports = update;

View File

@ -51,4 +51,4 @@ function update(options, callback) {
});
}
exports = update;
module.exports = update;