]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click...
authorawgy <josh.varner@gmail.com>
Sat, 5 Feb 2011 08:13:55 +0000 (02:13 -0600)
committergnarf <gnarf@gnarf.net>
Tue, 8 Mar 2011 06:52:07 +0000 (00:52 -0600)
ui/jquery.ui.mouse.js

index f5e8b58c02502496a7a9b9f178f6ef0e2b3c7504..bfe4a757825f7245ebd6b72c29721e24a7f02eb0 100644 (file)
@@ -75,6 +75,11 @@ $.widget("ui.mouse", {
                        }
                }
 
+               // Click event may never have fired (Gecko & Opera)
+               if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {
+                       $.removeData(event.target, this.widgetName + '.preventClickEvent');
+               }
+
                // these delegates are required to keep context
                this._mouseMoveDelegate = function(event) {
                        return self._mouseMove(event);