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

Unified Diff: chrome/browser/resources/ntp4/other_sessions.js

Issue 1053123003: [menu.js] Menu.menuItemSelector has to be set before decoration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | ui/file_manager/file_manager/foreground/js/ui/gear_menu.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/other_sessions.js
diff --git a/chrome/browser/resources/ntp4/other_sessions.js b/chrome/browser/resources/ntp4/other_sessions.js
index 780ad79e91d728782418809a71755a49386fb783..bc1181850826548f660cb241b7a6e0b520613521 100644
--- a/chrome/browser/resources/ntp4/other_sessions.js
+++ b/chrome/browser/resources/ntp4/other_sessions.js
@@ -72,8 +72,8 @@ cr.define('ntp', function() {
decorate: function() {
MenuButton.prototype.decorate.call(this);
this.menu = new Menu;
+ this.menu.menuItemSelector = '[role=menuitem]'; // before decoration
cr.ui.decorate(this.menu, Menu);
- this.menu.menuItemSelector = '[role=menuitem]';
this.menu.classList.add('footer-menu');
this.menu.addEventListener('contextmenu',
this.onContextMenu_.bind(this), true);
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/ui/gear_menu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698