diff options
author | awgy <josh.varner@gmail.com> | 2011-02-05 02:13:55 -0600 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-03-07 10:52:03 -0500 |
commit | 15aec63edc10bffcce638ff5244b5faba1ef51fd (patch) | |
tree | c880f086ca49f5a99a9d5aa58d5d6620fcc0b168 /ui/jquery.ui.mouse.js | |
parent | 12d38b1886b1e4a17d3bd018f028f7fa2b821229 (diff) | |
download | jquery-ui-15aec63edc10bffcce638ff5244b5faba1ef51fd.tar.gz jquery-ui-15aec63edc10bffcce638ff5244b5faba1ef51fd.zip |
Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko(cherry picked from commit 548bdb12a116771b34a99ba97769ddef22f7d156)
Diffstat (limited to 'ui/jquery.ui.mouse.js')
-rw-r--r-- | ui/jquery.ui.mouse.js | 5 |
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); |