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

Unified Diff: remoting/webapp/menu_button.js

Issue 584693003: Fix MenuButton for the case where multiple listeners are defined. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Temporarily disable unit test. Created 6 years, 3 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 | remoting/webapp/unittests/menu_button_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/menu_button.js
diff --git a/remoting/webapp/menu_button.js b/remoting/webapp/menu_button.js
index b41d69a3680d81f7a0b8e65ace3bc8677d496724..73c7642d1e12995b339dc54294ea9219f16a66a0 100644
--- a/remoting/webapp/menu_button.js
+++ b/remoting/webapp/menu_button.js
@@ -70,7 +70,7 @@ remoting.MenuButton = function(container, opt_onShow, opt_onHide) {
if (that.onShow_) {
that.onShow_();
}
- that.button_.classList.toggle(remoting.MenuButton.BUTTON_ACTIVE_CLASS_);
+ that.button_.classList.add(remoting.MenuButton.BUTTON_ACTIVE_CLASS_);
document.body.addEventListener('click', closeHandler, false);
event.stopPropagation();
};
« no previous file with comments | « no previous file | remoting/webapp/unittests/menu_button_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698