From 5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a Mon Sep 17 00:00:00 2001 From: Kris Borchers Date: Sat, 29 Dec 2012 20:08:05 -0600 Subject: [PATCH] Add comment explaining the mouseHandled flag --- ui/jquery.ui.menu.js | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.5