Skip to content

Commit 5561f5d

Browse files
committed
Add comment explaining the mouseHandled flag
1 parent e3ab5f8 commit 5561f5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.menu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ $.widget( "ui.menu", {
3838

3939
_create: function() {
4040
this.activeMenu = this.element;
41+
// flag used to prevent firing of the click handler
42+
// as the event bubbles up through nested menus
4143
this.mouseHandled = false;
4244
this.element
4345
.uniqueId()

0 commit comments

Comments
 (0)