Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1709)

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 134073005: Revert "Rate limit tree selection change side effects" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index f9cb6eabe0f1dcde89afc94ebcbaf88c4ada2785..386d7db560f01cca6265a1dfb7ba2eaa36e5435a 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -668,20 +668,7 @@ function updateEditingCommands() {
});
}
-function rateLimit(func, ms) {
- if (func.rateLimitId_) {
- clearTimeout(func.rateLimitId_);
- delete func.rateLimitId_;
- }
- func.rateLimitId_ = setTimeout(func, ms);
-}
-
-function handleChangeForTree() {
- // This should be rate limited based on the keyboard repeat rate.
- rateLimit(handleChangeForTreeHelper, 50);
-}
-
-function handleChangeForTreeHelper() {
+function handleChangeForTree(e) {
updateAllCommands();
navigateTo(tree.selectedItem.bookmarkId, updateHash);
}
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698