aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorawgy <josh.varner@gmail.com>2011-02-05 02:13:55 -0600
committerawgy <josh.varner@gmail.com>2011-02-05 02:13:55 -0600
commit548bdb12a116771b34a99ba97769ddef22f7d156 (patch)
tree1330c2a1254ca4bd1d15b3117788fe9689b831a7
parentd808f933eb6457426136ab6e319821bb25f45f7a (diff)
downloadjquery-ui-548bdb12a116771b34a99ba97769ddef22f7d156.tar.gz
jquery-ui-548bdb12a116771b34a99ba97769ddef22f7d156.zip
Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko
-rw-r--r--ui/jquery.ui.mouse.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js
index f5e8b58c0..bfe4a7578 100644
--- a/ui/jquery.ui.mouse.js
+++ b/ui/jquery.ui.mouse.js
@@ -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);