From 2417981dff49ee09fc699c536dd87f21e76bee50 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 1 Aug 2016 22:49:16 +0800 Subject: [PATCH] refact code --- src/scripts/config/aria2Options.js | 2 +- src/scripts/config/aria2RpcConstants.js | 2 +- src/scripts/config/configuration.js | 2 +- src/scripts/config/constants.js | 2 +- src/scripts/config/defaultLanguage.js | 2 +- src/scripts/config/initiator.js | 2 +- src/scripts/config/languages.js | 2 +- src/scripts/controllers/command.js | 4 +-- src/scripts/controllers/list.js | 6 ++--- src/scripts/controllers/main.js | 26 +++++++++---------- src/scripts/controllers/new.js | 14 +++++----- src/scripts/controllers/settings-aria2.js | 4 +-- src/scripts/controllers/settings-ariang.js | 6 ++--- src/scripts/controllers/status.js | 6 ++--- src/scripts/controllers/task-detail.js | 26 +++++++++---------- src/scripts/core/__config.js | 2 +- src/scripts/core/__core.js | 4 +-- src/scripts/core/__fix.js | 2 +- src/scripts/core/app.js | 2 +- src/scripts/core/root.js | 4 +-- src/scripts/core/router.js | 2 +- src/scripts/directives/autoFocus.js | 2 +- src/scripts/directives/chart.js | 2 +- src/scripts/directives/pieceBar.js | 2 +- src/scripts/directives/pieceMap.js | 2 +- src/scripts/directives/placeholder.js | 2 +- src/scripts/directives/setting.js | 2 +- src/scripts/directives/tooltip.js | 2 +- src/scripts/filters/dateDuration.js | 2 +- src/scripts/filters/fileOrderBy.js | 2 +- src/scripts/filters/longDate.js | 2 +- src/scripts/filters/peerOrderBy.js | 2 +- src/scripts/filters/percent.js | 2 +- src/scripts/filters/taskOrderBy.js | 2 +- src/scripts/filters/taskStatus.js | 2 +- src/scripts/filters/volumn.js | 2 +- src/scripts/services/aria2HttpRpcService.js | 2 +- src/scripts/services/aria2RpcService.js | 2 +- src/scripts/services/aria2SettingService.js | 2 +- src/scripts/services/aria2TaskService.js | 2 +- .../services/aria2WebSocketRpcService.js | 2 +- src/scripts/services/ariaNgCommonService.js | 2 +- src/scripts/services/ariaNgFileService.js | 2 +- src/scripts/services/ariaNgLanguageLoader.js | 2 +- src/scripts/services/ariaNgMonitorService.js | 2 +- .../services/ariaNgNotificationService.js | 2 +- src/scripts/services/ariaNgSettingService.js | 2 +- 47 files changed, 85 insertions(+), 89 deletions(-) diff --git a/src/scripts/config/aria2Options.js b/src/scripts/config/aria2Options.js index 5c93dd8..f9ffc0b 100644 --- a/src/scripts/config/aria2Options.js +++ b/src/scripts/config/aria2Options.js @@ -903,4 +903,4 @@ } ] }); -})(); +}()); diff --git a/src/scripts/config/aria2RpcConstants.js b/src/scripts/config/aria2RpcConstants.js index a5dac95..93e26e4 100644 --- a/src/scripts/config/aria2RpcConstants.js +++ b/src/scripts/config/aria2RpcConstants.js @@ -12,4 +12,4 @@ tipTextKey: 'rpc.error.unauthorized' } }); -})(); +}()); diff --git a/src/scripts/config/configuration.js b/src/scripts/config/configuration.js index 093357c..edea970 100644 --- a/src/scripts/config/configuration.js +++ b/src/scripts/config/configuration.js @@ -17,4 +17,4 @@ delay: ariaNgConstants.notificationInPageTimeout }); }]); -})(); +}()); diff --git a/src/scripts/config/constants.js b/src/scripts/config/constants.js index 0402fbc..9e314ea 100644 --- a/src/scripts/config/constants.js +++ b/src/scripts/config/constants.js @@ -124,4 +124,4 @@ globalStatRefreshInterval: 1000, downloadTaskRefreshInterval: 1000 }); -})(); +}()); diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index 4d3c3a2..277fb0e 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -524,4 +524,4 @@ $translateProvider.translations(ariaNgConstants.defaultLanguage, defaultLanguageResource); }]) -})(); +}()); diff --git a/src/scripts/config/initiator.js b/src/scripts/config/initiator.js index 126136e..7ca37ee 100644 --- a/src/scripts/config/initiator.js +++ b/src/scripts/config/initiator.js @@ -11,4 +11,4 @@ amMoment.changeLocale(language); ariaNgSettingService.applyLanguage(language); }]); -})(); +}()); diff --git a/src/scripts/config/languages.js b/src/scripts/config/languages.js index b5a69e4..c4396da 100644 --- a/src/scripts/config/languages.js +++ b/src/scripts/config/languages.js @@ -11,4 +11,4 @@ displayName: '简体中文' } }); -})(); +}()); diff --git a/src/scripts/controllers/command.js b/src/scripts/controllers/command.js index d8cddd9..98a393f 100644 --- a/src/scripts/controllers/command.js +++ b/src/scripts/controllers/command.js @@ -17,7 +17,7 @@ }); }; - if (path.indexOf('/new/') == 0) { + if (path.indexOf('/new/') === 0) { var base64Url = $routeParams.url; var url = base64.urldecode(base64Url); $rootScope.loadPromise = newUrlDownload(url); @@ -25,4 +25,4 @@ ariaNgCommonService.error('Parameter is invalid!'); } }]); -})(); +}()); diff --git a/src/scripts/controllers/list.js b/src/scripts/controllers/list.js index 5f1b376..ecdb8ab 100644 --- a/src/scripts/controllers/list.js +++ b/src/scripts/controllers/list.js @@ -18,7 +18,7 @@ } if (!response.success) { - if (response.data.message == aria2RpcErrors.Unauthorized.message) { + if (response.data.message === aria2RpcErrors.Unauthorized.message) { $interval.cancel(downloadTaskRefreshPromise); } @@ -85,7 +85,7 @@ $scope.isSupportDragTask = function () { var displayOrder = ariaNgCommonService.parseOrderType(ariaNgSettingService.getDisplayOrder()); - return location == 'waiting' && displayOrder.type == 'default'; + return location === 'waiting' && displayOrder.type === 'default'; }; if (ariaNgSettingService.getDownloadTaskRefreshInterval() > 0) { @@ -123,4 +123,4 @@ $rootScope.loadPromise = refreshDownloadTask(false); }]); -})(); +}()); diff --git a/src/scripts/controllers/main.js b/src/scripts/controllers/main.js index 178d1a6..73c9055 100644 --- a/src/scripts/controllers/main.js +++ b/src/scripts/controllers/main.js @@ -25,7 +25,7 @@ var refreshGlobalStat = function (silent, callback) { return aria2SettingService.getGlobalStat(function (response) { - if (!response.success && response.data.message == aria2RpcErrors.Unauthorized.message) { + if (!response.success && response.data.message === aria2RpcErrors.Unauthorized.message) { $interval.cancel(globalStatRefreshPromise); return; } @@ -62,7 +62,7 @@ for (var i = 0; i < selectedTasks.length; i++) { for (var j = 0; j < arguments.length; j++) { - if (selectedTasks[i].status == arguments[j]) { + if (selectedTasks[i].status === arguments[j]) { return true; } } @@ -80,7 +80,7 @@ for (var i = 0; i < tasks.length; i++) { for (var j = 0; j < arguments.length; j++) { - if (tasks[i].status == arguments[j]) { + if (tasks[i].status === arguments[j]) { return true; } } @@ -98,9 +98,9 @@ var invoke = null; - if (state == 'start') { + if (state === 'start') { invoke = aria2TaskService.startTasks; - } else if (state == 'pause') { + } else if (state === 'pause') { invoke = aria2TaskService.pauseTasks; } else { return; @@ -117,14 +117,14 @@ refreshGlobalStat(true); - if (!response.hasError && state == 'start') { - if ($location.path() == '/waiting') { + if (!response.hasError && state === 'start') { + if ($location.path() === '/waiting') { $location.path('/downloading'); } else { $route.reload(); } - } else if (!response.hasError && state == 'pause') { - if ($location.path() == '/downloading') { + } else if (!response.hasError && state === 'pause') { + if ($location.path() === '/downloading') { $location.path('/waiting'); } else { $route.reload(); @@ -153,7 +153,7 @@ refreshGlobalStat(true); if (!response.hasError) { - if ($location.path() == '/stopped') { + if ($location.path() === '/stopped') { $route.reload(); } else { $location.path('/stopped'); @@ -172,7 +172,7 @@ refreshGlobalStat(true); - if ($location.path() == '/stopped') { + if ($location.path() === '/stopped') { $route.reload(); } else { $location.path('/stopped'); @@ -189,7 +189,7 @@ var oldType = ariaNgCommonService.parseOrderType(ariaNgSettingService.getDisplayOrder()); var newType = ariaNgCommonService.parseOrderType(type); - if (autoSetReverse && newType.type == oldType.type) { + if (autoSetReverse && newType.type === oldType.type) { newType.reverse = !oldType.reverse; } @@ -229,4 +229,4 @@ refreshPageTitle(); }); }]); -})(); +}()); diff --git a/src/scripts/controllers/new.js b/src/scripts/controllers/new.js index ed150ae..361ada1 100644 --- a/src/scripts/controllers/new.js +++ b/src/scripts/controllers/new.js @@ -17,7 +17,7 @@ }; $scope.changeTab = function (tabName) { - if (tabName == 'options') { + if (tabName === 'options') { $scope.loadDefaultOption(); } @@ -98,7 +98,7 @@ var tasks = []; for (var i = 0; i < urls.length; i++) { - if (urls[i] == '' || urls[i].trim() == '') { + if (urls[i] === '' || urls[i].trim() === '') { continue; } @@ -122,7 +122,7 @@ }; $scope.setOption = function (key, value, optionStatus) { - if (value != '') { + if (value !== '') { $scope.context.options[key] = value; } else { delete $scope.context.options[key]; @@ -132,13 +132,11 @@ }; $scope.urlTextboxKeyDown = function (event) { - if (event.keyCode == 13 && event.ctrlKey && $scope.newTaskForm.$valid) { + if (event.keyCode === 13 && event.ctrlKey && $scope.newTaskForm.$valid) { $scope.startDownload(); } }; - $rootScope.loadPromise = $timeout(function () { - ;//Do Nothing - }, 100); + $rootScope.loadPromise = $timeout(function () {}, 100); }]); -})(); +}()); diff --git a/src/scripts/controllers/settings-aria2.js b/src/scripts/controllers/settings-aria2.js index a6f4a7a..35647d7 100644 --- a/src/scripts/controllers/settings-aria2.js +++ b/src/scripts/controllers/settings-aria2.js @@ -20,7 +20,7 @@ $scope.setGlobalOption = function (key, value, optionStatus) { return aria2SettingService.setGlobalOption(key, value, function (response) { - if (response.success && response.data == 'OK') { + if (response.success && response.data === 'OK') { optionStatus.setSuccess(); } else { optionStatus.setFailed(response.data.message); @@ -36,4 +36,4 @@ }); })(); }]); -})(); +}()); diff --git a/src/scripts/controllers/settings-ariang.js b/src/scripts/controllers/settings-ariang.js index 47a6f8e..5ac2388 100644 --- a/src/scripts/controllers/settings-ariang.js +++ b/src/scripts/controllers/settings-ariang.js @@ -29,8 +29,6 @@ } }; - $rootScope.loadPromise = $timeout(function () { - ;//Do Nothing - }, 100); + $rootScope.loadPromise = $timeout(function () {}, 100); }]); -})(); +}()); diff --git a/src/scripts/controllers/status.js b/src/scripts/controllers/status.js index 957339b..ca6d7cf 100644 --- a/src/scripts/controllers/status.js +++ b/src/scripts/controllers/status.js @@ -8,7 +8,7 @@ $scope.saveSession = function () { return aria2SettingService.saveSession(function (response) { - if (response.success && response.data == 'OK') { + if (response.success && response.data === 'OK') { ariaNgCommonService.showOperationSucceeded('Session has been saved successfully.'); } }); @@ -17,7 +17,7 @@ $scope.shutdown = function () { ariaNgCommonService.confirm('Confirm Shutdown', 'Are you sure you want to shutdown aria2?', 'warning', function (status) { return aria2SettingService.shutdown(function (response) { - if (response.success && response.data == 'OK') { + if (response.success && response.data === 'OK') { ariaNgCommonService.showOperationSucceeded('Aria2 has been shutdown successfully.'); } }); @@ -32,4 +32,4 @@ }); })(); }]); -})(); +}()); diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index cc28e2f..9b2ae34 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -21,13 +21,13 @@ return; } - if (task.status != 'active' || !task.bittorrent) { + if (task.status !== 'active' || !task.bittorrent) { if (tabOrders.indexOf('btpeers') >= 0) { tabOrders.splice(tabOrders.indexOf('btpeers'), 1); } } - if (!$scope.task || $scope.task.status != task.status) { + if (!$scope.task || $scope.task.status !== task.status) { $scope.context.availableOptions = getAvailableOptions(task.status, !!task.bittorrent); } @@ -53,7 +53,7 @@ }; var requireBtPeers = function (task) { - return (task && task.bittorrent && task.status == 'active'); + return (task && task.bittorrent && task.status === 'active'); }; var refreshDownloadTask = function (silent) { @@ -62,7 +62,7 @@ } var processError = function (message) { - if (message == aria2RpcErrors.Unauthorized.message) { + if (message === aria2RpcErrors.Unauthorized.message) { $interval.cancel(downloadTaskRefreshPromise); } }; @@ -137,7 +137,7 @@ }; $scope.changeTab = function (tabName) { - if (tabName == 'settings') { + if (tabName === 'settings') { $scope.loadTaskOption($scope.task); } @@ -170,7 +170,7 @@ var oldType = ariaNgCommonService.parseOrderType(ariaNgSettingService.getFileListDisplayOrder()); var newType = ariaNgCommonService.parseOrderType(type); - if (autoSetReverse && newType.type == oldType.type) { + if (autoSetReverse && newType.type === oldType.type) { newType.reverse = !oldType.reverse; } @@ -209,11 +209,11 @@ } for (var i = 0; i < $scope.task.files.length; i++) { - if (type == 'all') { + if (type === 'all') { $scope.task.files[i].selected = true; - } else if (type == 'none') { + } else if (type === 'none') { $scope.task.files[i].selected = false; - } else if (type == 'reverse') { + } else if (type === 'reverse') { $scope.task.files[i].selected = !$scope.task.files[i].selected; } } @@ -271,7 +271,7 @@ var oldType = ariaNgCommonService.parseOrderType(ariaNgSettingService.getPeerListDisplayOrder()); var newType = ariaNgCommonService.parseOrderType(type); - if (autoSetReverse && newType.type == oldType.type) { + if (autoSetReverse && newType.type === oldType.type) { newType.reverse = !oldType.reverse; } @@ -299,7 +299,7 @@ $scope.setOption = function (key, value, optionStatus) { return aria2TaskService.setTaskOption($scope.task.gid, key, value, function (response) { - if (response.success && response.data == 'OK') { + if (response.success && response.data === 'OK') { optionStatus.setSuccess(); } else { optionStatus.setFailed(response.data.message); @@ -309,7 +309,7 @@ if (ariaNgSettingService.getDownloadTaskRefreshInterval() > 0) { downloadTaskRefreshPromise = $interval(function () { - if ($scope.task && ($scope.task.status == 'complete' || $scope.task.status == 'error' || $scope.task.status == 'removed')) { + if ($scope.task && ($scope.task.status === 'complete' || $scope.task.status === 'error' || $scope.task.status === 'removed')) { $interval.cancel(downloadTaskRefreshPromise); return; } @@ -326,4 +326,4 @@ $rootScope.loadPromise = refreshDownloadTask(false); }]); -})(); +}()); diff --git a/src/scripts/core/__config.js b/src/scripts/core/__config.js index a569b87..4d4ab74 100644 --- a/src/scripts/core/__config.js +++ b/src/scripts/core/__config.js @@ -3,4 +3,4 @@ //override AdminLTE options $.AdminLTE.options.animationSpeed = 300; -})(); +}()); diff --git a/src/scripts/core/__core.js b/src/scripts/core/__core.js index 2d7f711..90fa49b 100644 --- a/src/scripts/core/__core.js +++ b/src/scripts/core/__core.js @@ -11,7 +11,7 @@ var browserVersions = navigator.appVersion.split(';'); var browserVersion = (browserVersions && browserVersions.length > 1 ? browserVersions[1].replace(/[ ]/g, '') : ''); - if (browserName == 'Microsoft Internet Explorer' && (browserVersion == 'MSIE6.0' || browserVersion == 'MSIE7.0' || browserVersion == 'MSIE8.0' || browserVersion == 'MSIE9.0')) { + if (browserName === 'Microsoft Internet Explorer' && (browserVersion === 'MSIE6.0' || browserVersion === 'MSIE7.0' || browserVersion === 'MSIE8.0' || browserVersion === 'MSIE9.0')) { return true; } @@ -24,4 +24,4 @@ tip.innerHTML = 'Sorry, AriaNg cannot support this browser, please upgrade your browser!'; document.getElementById('content-wrapper').appendChild(tip); } -})(); +}()); diff --git a/src/scripts/core/__fix.js b/src/scripts/core/__fix.js index 5fe0d93..06a9c86 100644 --- a/src/scripts/core/__fix.js +++ b/src/scripts/core/__fix.js @@ -14,4 +14,4 @@ }); fixContentWrapperHeight(); -})(); +}()); diff --git a/src/scripts/core/app.js b/src/scripts/core/app.js index 170f247..6a6a359 100644 --- a/src/scripts/core/app.js +++ b/src/scripts/core/app.js @@ -21,4 +21,4 @@ 'oitozero.ngSweetAlert', angularDragula(angular) ]); -})(); +}()); diff --git a/src/scripts/core/root.js b/src/scripts/core/root.js index ed18809..764ee44 100644 --- a/src/scripts/core/root.js +++ b/src/scripts/core/root.js @@ -15,7 +15,7 @@ var lastPart = url2.substring(url.length); - if (lastPart.indexOf('/') == 0) { + if (lastPart.indexOf('/') === 0) { return true; } @@ -209,4 +209,4 @@ initNavbar(); }]); -})(); +}()); diff --git a/src/scripts/core/router.js b/src/scripts/core/router.js index be18800..c9e515e 100644 --- a/src/scripts/core/router.js +++ b/src/scripts/core/router.js @@ -71,4 +71,4 @@ redirectTo: '/downloading' }); }]); -})(); +}()); diff --git a/src/scripts/directives/autoFocus.js b/src/scripts/directives/autoFocus.js index 4dbb7ed..d0a271b 100644 --- a/src/scripts/directives/autoFocus.js +++ b/src/scripts/directives/autoFocus.js @@ -11,4 +11,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/directives/chart.js b/src/scripts/directives/chart.js index 400d0c4..40d9046 100644 --- a/src/scripts/directives/chart.js +++ b/src/scripts/directives/chart.js @@ -191,4 +191,4 @@ animationDuration: 500 }; }); -})(); +}()); diff --git a/src/scripts/directives/pieceBar.js b/src/scripts/directives/pieceBar.js index 14e354b..85639c9 100644 --- a/src/scripts/directives/pieceBar.js +++ b/src/scripts/directives/pieceBar.js @@ -45,4 +45,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/directives/pieceMap.js b/src/scripts/directives/pieceMap.js index 5743826..433a166 100644 --- a/src/scripts/directives/pieceMap.js +++ b/src/scripts/directives/pieceMap.js @@ -59,4 +59,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/directives/placeholder.js b/src/scripts/directives/placeholder.js index 01e5aa5..a62332c 100644 --- a/src/scripts/directives/placeholder.js +++ b/src/scripts/directives/placeholder.js @@ -14,4 +14,4 @@ } }; }); -})(); +}()); diff --git a/src/scripts/directives/setting.js b/src/scripts/directives/setting.js index b5c85d6..c5b823a 100644 --- a/src/scripts/directives/setting.js +++ b/src/scripts/directives/setting.js @@ -226,4 +226,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/directives/tooltip.js b/src/scripts/directives/tooltip.js index e9cc333..5a9d2f4 100644 --- a/src/scripts/directives/tooltip.js +++ b/src/scripts/directives/tooltip.js @@ -72,4 +72,4 @@ } }; }); -})(); +}()); diff --git a/src/scripts/filters/dateDuration.js b/src/scripts/filters/dateDuration.js index 8f1dd15..fb51fc8 100644 --- a/src/scripts/filters/dateDuration.js +++ b/src/scripts/filters/dateDuration.js @@ -8,4 +8,4 @@ return time.format(format); } }]); -})(); +}()); diff --git a/src/scripts/filters/fileOrderBy.js b/src/scripts/filters/fileOrderBy.js index fab8e9f..e7a335d 100644 --- a/src/scripts/filters/fileOrderBy.js +++ b/src/scripts/filters/fileOrderBy.js @@ -24,4 +24,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/filters/longDate.js b/src/scripts/filters/longDate.js index 3aef94f..77dc5a2 100644 --- a/src/scripts/filters/longDate.js +++ b/src/scripts/filters/longDate.js @@ -7,4 +7,4 @@ return moment(time).format(format); } }]); -})(); +}()); diff --git a/src/scripts/filters/peerOrderBy.js b/src/scripts/filters/peerOrderBy.js index 8380cf8..903b564 100644 --- a/src/scripts/filters/peerOrderBy.js +++ b/src/scripts/filters/peerOrderBy.js @@ -28,4 +28,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/filters/percent.js b/src/scripts/filters/percent.js index 8c674cc..ac46cbd 100644 --- a/src/scripts/filters/percent.js +++ b/src/scripts/filters/percent.js @@ -9,4 +9,4 @@ return $filter('number')(result, precision); } }]); -})(); +}()); diff --git a/src/scripts/filters/taskOrderBy.js b/src/scripts/filters/taskOrderBy.js index 94565d6..6a514dc 100644 --- a/src/scripts/filters/taskOrderBy.js +++ b/src/scripts/filters/taskOrderBy.js @@ -30,4 +30,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/filters/taskStatus.js b/src/scripts/filters/taskStatus.js index 59d9e15..fe1405a 100644 --- a/src/scripts/filters/taskStatus.js +++ b/src/scripts/filters/taskStatus.js @@ -28,4 +28,4 @@ } } }); -})(); +}()); diff --git a/src/scripts/filters/volumn.js b/src/scripts/filters/volumn.js index a6eebb2..943c944 100644 --- a/src/scripts/filters/volumn.js +++ b/src/scripts/filters/volumn.js @@ -34,4 +34,4 @@ return value + ' ' + unit; } }]); -})(); +}()); diff --git a/src/scripts/services/aria2HttpRpcService.js b/src/scripts/services/aria2HttpRpcService.js index f0ea6a5..3283ab1 100644 --- a/src/scripts/services/aria2HttpRpcService.js +++ b/src/scripts/services/aria2HttpRpcService.js @@ -39,4 +39,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/aria2RpcService.js b/src/scripts/services/aria2RpcService.js index 9d3edfa..3dbef92 100644 --- a/src/scripts/services/aria2RpcService.js +++ b/src/scripts/services/aria2RpcService.js @@ -438,4 +438,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/aria2SettingService.js b/src/scripts/services/aria2SettingService.js index 20bef18..0765539 100644 --- a/src/scripts/services/aria2SettingService.js +++ b/src/scripts/services/aria2SettingService.js @@ -183,4 +183,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/aria2TaskService.js b/src/scripts/services/aria2TaskService.js index a8776c6..a47a8e3 100644 --- a/src/scripts/services/aria2TaskService.js +++ b/src/scripts/services/aria2TaskService.js @@ -590,4 +590,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/aria2WebSocketRpcService.js b/src/scripts/services/aria2WebSocketRpcService.js index 9cf8adf..5100258 100644 --- a/src/scripts/services/aria2WebSocketRpcService.js +++ b/src/scripts/services/aria2WebSocketRpcService.js @@ -117,4 +117,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgCommonService.js b/src/scripts/services/ariaNgCommonService.js index a60a230..9d462e3 100644 --- a/src/scripts/services/ariaNgCommonService.js +++ b/src/scripts/services/ariaNgCommonService.js @@ -233,4 +233,4 @@ } }; }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgFileService.js b/src/scripts/services/ariaNgFileService.js index cdd7709..276b6cc 100644 --- a/src/scripts/services/ariaNgFileService.js +++ b/src/scripts/services/ariaNgFileService.js @@ -89,4 +89,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgLanguageLoader.js b/src/scripts/services/ariaNgLanguageLoader.js index 3879899..ba23be2 100644 --- a/src/scripts/services/ariaNgLanguageLoader.js +++ b/src/scripts/services/ariaNgLanguageLoader.js @@ -32,4 +32,4 @@ return deferred.promise; }; }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgMonitorService.js b/src/scripts/services/ariaNgMonitorService.js index 8bc167f..8d67628 100644 --- a/src/scripts/services/ariaNgMonitorService.js +++ b/src/scripts/services/ariaNgMonitorService.js @@ -156,4 +156,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgNotificationService.js b/src/scripts/services/ariaNgNotificationService.js index ede48c5..a659e62 100644 --- a/src/scripts/services/ariaNgNotificationService.js +++ b/src/scripts/services/ariaNgNotificationService.js @@ -84,4 +84,4 @@ } } }]); -})(); +}()); diff --git a/src/scripts/services/ariaNgSettingService.js b/src/scripts/services/ariaNgSettingService.js index bcebe95..5b192b6 100644 --- a/src/scripts/services/ariaNgSettingService.js +++ b/src/scripts/services/ariaNgSettingService.js @@ -245,4 +245,4 @@ } }; }]); -})(); +}());