Skip to content

Commit

Permalink
Fixed a self reference in Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 21, 2012
1 parent bcc346b commit 6053811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/ui.js
Expand Up @@ -1318,7 +1318,7 @@ function Menu() {
this.items = {};
this.el = $(html).hide().appendTo('body');
this.el.hover(this.deselect.bind(this));
$('html').click(function(){ self.hide(); });
$('html').click(this.hide.bind(this));
this.on('show', this.bindKeyboardEvents.bind(this));
this.on('hide', this.unbindKeyboardEvents.bind(this));
};
Expand Down
2 changes: 1 addition & 1 deletion lib/components/menu/menu.js
Expand Up @@ -34,7 +34,7 @@ function Menu() {
this.items = {};
this.el = $(html).hide().appendTo('body');
this.el.hover(this.deselect.bind(this));
$('html').click(function(){ self.hide(); });
$('html').click(this.hide.bind(this));
this.on('show', this.bindKeyboardEvents.bind(this));
this.on('hide', this.unbindKeyboardEvents.bind(this));
};
Expand Down

0 comments on commit 6053811

Please sign in to comment.