From 32dc651bfb88c5b9ab32f405fd17294ccb1f7282 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 22 Jan 2014 00:29:55 -0800 Subject: [PATCH] Revert "feat(cheating) prevent +habit spamming with a 10s timer" This reverts commit ad4ca6655a3bdd870bb08173530372f81fdc9102. --- public/js/controllers/tasksCtrl.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/public/js/controllers/tasksCtrl.js b/public/js/controllers/tasksCtrl.js index c9142af13a..5dd8fc9369 100644 --- a/public/js/controllers/tasksCtrl.js +++ b/public/js/controllers/tasksCtrl.js @@ -5,14 +5,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$location', 'User','Notification', $scope.obj = User.user; // used for task-lists $scope.user = User.user; - var dontCheatTimer = {}; $scope.score = function(task, direction) { - if (direction == 'up' && task.type == 'habit') { - if (dontCheatTimer[task.id]) - return alert("Wait 10 seconds before clicking that task again"); - dontCheatTimer[task.id] = true; - $timeout(function(){delete dontCheatTimer[task.id]}, 10000); - } User.user.ops.score({params:{id: task.id, direction:direction}}) };