Add dangling commas in module.exports

This commit is contained in:
printempw 2017-08-01 14:42:17 +08:00
parent 5fd8ef62aa
commit d5f7c704dd
13 changed files with 27 additions and 30 deletions

View File

@ -163,11 +163,11 @@ function deletePlayer(pid) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
changePreference,
changeTexture,
ajaxChangeTexture,
changePlayerName,
changeOwner,
deletePlayer
deletePlayer,
changeTexture,
changePlayerName,
changePreference,
ajaxChangeTexture,
};
}

View File

@ -54,8 +54,8 @@ function deletePlugin(name) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
deletePlugin,
enablePlugin,
disablePlugin,
deletePlugin
};
}

View File

@ -275,6 +275,6 @@ if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
initUsersTable,
initPlayersTable,
initPluginsTable
initPluginsTable,
};
}

View File

@ -167,12 +167,12 @@ $('body').on('keypress', '.score', function(event){
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
changeUserEmail,
changeUserNickName,
changeUserPwd,
changeUserScore,
changeBanStatus,
changeUserEmail,
changeUserScore,
changeAdminStatus,
deleteUserAccount
deleteUserAccount,
changeUserNickName,
};
}

View File

@ -50,7 +50,7 @@ function trans(key, parameters = {}) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
trans,
loadLocales,
trans
};
}

View File

@ -59,7 +59,7 @@ function showModal(msg, title = 'Message', type = 'default', options = {}) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
showMsg,
showModal,
showAjaxError,
showModal
};
}

View File

@ -84,8 +84,7 @@ function debounce(func, delay, args = [], context = undefined) {
};
}
function url(relativeUri) {
relativeUri = relativeUri || '';
function url(relativeUri = '') {
blessing.base_url = blessing.base_url || '';
if (relativeUri[0] != '/') {
@ -97,10 +96,10 @@ function url(relativeUri) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
isEmpty,
url,
fetch,
isEmpty,
debounce,
getQueryString,
url
};
}

View File

@ -225,7 +225,7 @@ if (typeof require !== 'undefined' && typeof module !== 'undefined') {
renderSkinlib,
reloadSkinlib,
updatePaginator,
updateBreadCrumb,
updateUrlQueryString,
updateBreadCrumb
};
}

View File

@ -178,11 +178,11 @@ function deleteTexture(tid) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
addToCloset,
changePrivacy,
deleteTexture,
ajaxAddToCloset,
removeFromCloset,
changeTextureName,
updateTextureStatus,
changePrivacy,
deleteTexture
};
}

View File

@ -129,7 +129,5 @@ function upload() {
}
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
upload
};
module.exports = upload;
}

View File

@ -244,10 +244,10 @@ function setAsAvatar(tid) {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
setAsAvatar,
renderCloset,
reloadCloset,
renameClosetItem,
removeFromCloset,
setAsAvatar
};
}

View File

@ -206,11 +206,11 @@ function setTexture() {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
changePlayerName,
ajaxClearTexture,
setTexture,
addNewPlayer,
clearTexture,
deletePlayer,
addNewPlayer,
setTexture
changePlayerName,
ajaxClearTexture,
};
}

View File

@ -152,9 +152,9 @@ function deleteAccount() {
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
module.exports = {
changeEmail,
deleteAccount,
changeNickName,
changePassword,
changeEmail,
deleteAccount
};
}