From: Kris Borchers Date: Sun, 30 Dec 2012 02:08:05 +0000 (-0600) Subject: Add comment explaining the mouseHandled flag X-Git-Tag: 1.10.0-rc.1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5561f5db1206b3c8d00f480b1b1ea7d6aa2fa84a;p=jquery-ui.git Add comment explaining the mouseHandled flag --- 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()