diff options
author | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 14:38:18 +0000 |
---|---|---|
committer | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 14:38:18 +0000 |
commit | c668b4451ed54f1e70e60e0493371d0d4089d916 (patch) | |
tree | 541657766012ca4b3e27abf48c3270dd627db0ce /chrome/browser/resources/ntp4/other_sessions.js | |
parent | 9841e9cc5edef70feb64b7629a6daf80fdcc60ed (diff) | |
download | chromium_src-c668b4451ed54f1e70e60e0493371d0d4089d916.zip chromium_src-c668b4451ed54f1e70e60e0493371d0d4089d916.tar.gz chromium_src-c668b4451ed54f1e70e60e0493371d0d4089d916.tar.bz2 |
Use hidden attribute rather the 'display: none' for hiding menus.
BUG=None
TEST=Manual test of menus on NTP, bookmarks, chrome://history.
Review URL: https://chromiumcodereview.appspot.com/10389016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp4/other_sessions.js')
-rw-r--r-- | chrome/browser/resources/ntp4/other_sessions.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/resources/ntp4/other_sessions.js b/chrome/browser/resources/ntp4/other_sessions.js index 5e38764..1a0f60d 100644 --- a/chrome/browser/resources/ntp4/other_sessions.js +++ b/chrome/browser/resources/ntp4/other_sessions.js @@ -55,7 +55,6 @@ cr.define('ntp', function() { // Create the context menu that appears when the user right clicks // on a device name. this.deviceContextMenu_ = DeviceContextMenuController.getInstance().menu; - this.deviceContextMenu_.style.display = 'none'; document.body.appendChild(this.deviceContextMenu_); this.promoMessage_ = $('other-sessions-promo-template').cloneNode(true); @@ -107,7 +106,7 @@ cr.define('ntp', function() { */ hideMenu: function() { // Don't hide if the device context menu is currently showing. - if (this.deviceContextMenu_.style.display == 'none') + if (this.deviceContextMenu_.hidden) MenuButton.prototype.hideMenu.call(this); }, |