From 05e0fb6b4f2359a576c509f34bbb87b4f51cf9c2 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 14 Feb 2021 12:21:52 +0800 Subject: [PATCH] fix typo --- src/scripts/controllers/new.js | 4 ++-- src/scripts/controllers/settings-ariang.js | 4 ++-- src/scripts/controllers/task-detail.js | 4 ++-- src/scripts/core/root.js | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/scripts/controllers/new.js b/src/scripts/controllers/new.js index 34da693..25fce98 100644 --- a/src/scripts/controllers/new.js +++ b/src/scripts/controllers/new.js @@ -93,7 +93,7 @@ $scope.context.currentTab = tabName; }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex < tabOrders.length - 1) { @@ -104,7 +104,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex > 0) { diff --git a/src/scripts/controllers/settings-ariang.js b/src/scripts/controllers/settings-ariang.js index 809c816..848a365 100644 --- a/src/scripts/controllers/settings-ariang.js +++ b/src/scripts/controllers/settings-ariang.js @@ -93,7 +93,7 @@ $scope.context.titlePreview = getFinalTitle(); }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = -1; if (!$scope.isCurrentGlobalTab()) { @@ -108,7 +108,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = -1; if (!$scope.isCurrentGlobalTab()) { diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index be10ba3..502a09a 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -218,7 +218,7 @@ $scope.context.currentTab = tabName; }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex < tabOrders.length - 1) { @@ -229,7 +229,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex > 0) { diff --git a/src/scripts/core/root.js b/src/scripts/core/root.js index 2ea7070..b21168b 100644 --- a/src/scripts/core/root.js +++ b/src/scripts/core/root.js @@ -350,14 +350,14 @@ return; } - if (!this.extentLeftSwipe || - (angular.isFunction(this.extentLeftSwipe) && !this.extentLeftSwipe())) { + if (!this.extendLeftSwipe || + (angular.isFunction(this.extendLeftSwipe) && !this.extendLeftSwipe())) { hideSidebar(); } }, rightSwipe: function () { - if (!this.extentRightSwipe || - (angular.isFunction(this.extentRightSwipe) && !this.extentRightSwipe())) { + if (!this.extendRightSwipe || + (angular.isFunction(this.extendRightSwipe) && !this.extendRightSwipe())) { showSidebar(); } } @@ -430,8 +430,8 @@ $rootScope.loadPromise = null; - delete $rootScope.swipeActions.extentLeftSwipe; - delete $rootScope.swipeActions.extentRightSwipe; + delete $rootScope.swipeActions.extendLeftSwipe; + delete $rootScope.swipeActions.extendRightSwipe; if (angular.isArray($rootScope.taskContext.list) && $rootScope.taskContext.list.length > 0) { $rootScope.taskContext.list.length = 0;