projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a808a4
)
Roo/bootstrap/menu/Menu.js
author
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 03:00:25 +0000
(11:00 +0800)
committer
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 03:00:25 +0000
(11:00 +0800)
Roo/bootstrap/menu/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/menu/Menu.js
b/Roo/bootstrap/menu/Menu.js
index
5521aea
..
07100af
100644
(file)
--- a/
Roo/bootstrap/menu/Menu.js
+++ b/
Roo/bootstrap/menu/Menu.js
@@
-152,7
+152,7
@@
Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component, {
this.hidden = false;
this.el.addClass('open');
- Roo.get(document).on("mouse
down", this.onMouseDown
, this);
+ Roo.get(document).on("mouse
up", this.onMouseUp
, this);
this.fireEvent("show", this);
@@
-165,10
+165,12
@@
Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component, {
this.hidden = true;
this.el.removeClass('open');
+ Roo.get(document).un("mouseup", onMouseUp);
+
this.fireEvent("hide", this);
},
- onMouse
Down
: function()
+ onMouse
Up
: function()
{
Roo.log('hide');
this.hide();