diff options
author | Kris Borchers <kris.borchers@gmail.com> | 2012-12-29 20:08:05 -0600 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2012-12-29 20:08:35 -0600 |
commit | 5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a (patch) | |
tree | 8584d6f19e7107eab372800776b5b17236ea3085 /ui | |
parent | e3ab5f811a97c9fd79038c550aa86dcff0465d40 (diff) | |
download | jquery-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.js | 2 |
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() |