aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-11-10 07:58:44 -0500
committerScott González <scott.gonzalez@gmail.com>2011-11-10 07:58:58 -0500
commit1b165148a6654f64d572bd4c28ddb2cee5f6a332 (patch)
tree130bbf1d3662f496daf568eaebe5be5c37e69f7d /ui/jquery.ui.widget.js
parentc21a5b4451f5eded288de4482b9508e2bd13756d (diff)
downloadjquery-ui-1b165148a6654f64d572bd4c28ddb2cee5f6a332.tar.gz
jquery-ui-1b165148a6654f64d572bd4c28ddb2cee5f6a332.zip
Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 56f465b94..294e321a9 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -393,6 +393,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 );
args = $.isArray( data ) ?