]> source.dussan.org Git - jquery-ui.git/commitdiff
Add comment explaining the mouseHandled flag
authorKris Borchers <kris.borchers@gmail.com>
Sun, 30 Dec 2012 02:08:05 +0000 (20:08 -0600)
committerKris Borchers <kris.borchers@gmail.com>
Sun, 30 Dec 2012 02:08:35 +0000 (20:08 -0600)
ui/jquery.ui.menu.js

index 3c445eca1fd6a88afc2dfe7f190d91ee6f2a5456..a666e934d5296ce5b4d8b0ba14f448a3e2ca1296 100644 (file)
@@ -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()