diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-11-10 07:58:44 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-11-10 07:59:33 -0500 |
commit | aa4e8ab3fb83f2550bac1e5476bd20f84a5883d9 (patch) | |
tree | a50f1e6a0bfd21446c1636b2866f113f10b33ac6 /ui/jquery.ui.widget.js | |
parent | 6f6e2ded1a9b30f65a34733f3d887c16c162e28a (diff) | |
download | jquery-ui-aa4e8ab3fb83f2550bac1e5476bd20f84a5883d9.tar.gz jquery-ui-aa4e8ab3fb83f2550bac1e5476bd20f84a5883d9.zip |
Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7.
(cherry picked from commit 1b165148a6654f64d572bd4c28ddb2cee5f6a332)
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 4aa42e0b7..7eea40e70 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -257,6 +257,10 @@ $.Widget.prototype = { } } + // the original event may come from any element + // so we need to reset the target on the new event + event.target = this.element[0]; + this.element.trigger( event, data ); return !( $.isFunction(callback) && |