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

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

Issue 8422008: TaskManager: minor UI cleanup (consume Esc with context menu opened, use classList). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/shared/js/cr/ui/context_menu_handler.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/task_manager/main.js
diff --git a/chrome/browser/resources/task_manager/main.js b/chrome/browser/resources/task_manager/main.js
index 551f469b849ae35892c4146cd0804cc6eb73e24f..6dbed2bfba2a2cc7e90f222da37a450adcb92a01 100644
--- a/chrome/browser/resources/task_manager/main.js
+++ b/chrome/browser/resources/task_manager/main.js
@@ -432,10 +432,11 @@ TaskManager.prototype = {
this.currentContextMenuTarget_ = undefined;
var target = e.target;
- var classes = target.className.split(" ");
- while (target && classes.indexOf('detail-title') == -1) {
+ var classes = target.classList;
+ while (target &&
+ Array.prototype.indexOf.call(classes, 'detail-title') == -1) {
target = target.parentNode;
- classes = target.className.split(" ");
+ classes = target.classList;
}
if (!target)
« no previous file with comments | « chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698