aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKris Borchers <kris.borchers@gmail.com>2012-12-29 20:08:05 -0600
committerKris Borchers <kris.borchers@gmail.com>2012-12-29 20:08:35 -0600
commit5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a (patch)
tree8584d6f19e7107eab372800776b5b17236ea3085 /ui
parente3ab5f811a97c9fd79038c550aa86dcff0465d40 (diff)
downloadjquery-ui-5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a.tar.gz
jquery-ui-5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a.zip
Add comment explaining the mouseHandled flag
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.menu.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 3c445eca1..a666e934d 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -38,6 +38,8 @@ $.widget( "ui.menu", {
_create: function() {
this.activeMenu = this.element;
+ // flag used to prevent firing of the click handler
+ // as the event bubbles up through nested menus
this.mouseHandled = false;
this.element
.uniqueId()