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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 147097: Fix issues with the last patch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 19141)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -683,6 +683,9 @@
this.button.onkeydown = bind(this.handleKeyDown, this);
this.boundHideMenu_ = bind(this.hideMenu, this);
this.boundMaybeHide_ = bind(this.maybeHide_, this);
+ this.menu.onmouseover = bind(this.handleMouseOver, this);
+ this.menu.onmouseout = bind(this.handleMouseOut, this);
+ this.menu.onmouseup = bind(this.handleMouseUp, this);
}
OptionMenu.prototype = {
@@ -805,7 +808,7 @@
setSelectedIndex: function(i) {
if (i != this.selectedIndex_) {
var items = this.menu.children;
- var oldItem = this.items[this.selectedIndex_];
+ var oldItem = items[this.selectedIndex_];
if (oldItem) {
oldItem.removeAttribute('selected');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698