aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorSamuel Cormier-Iijima <sam@chide.it>2010-07-08 23:36:48 +0800
committerScott González <scott.gonzalez@gmail.com>2010-07-09 00:11:06 +0800
commit89c0961c3849db0d804b337f2d438c822074b112 (patch)
tree188ba173197e7cd434fd2c7b91a4515dddaa158b /ui
parent594b7f5b23dbbfd9a4781105b56fe0daaa1ea691 (diff)
downloadjquery-ui-89c0961c3849db0d804b337f2d438c822074b112.tar.gz
jquery-ui-89c0961c3849db0d804b337f2d438c822074b112.zip
Core (widget): don't pass DOM objects to $.fn.add. Fixes #5743 ($.fn.remove does not trigger remove event for <select>s)
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index a9829d2e5..c71832a69 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -15,7 +15,7 @@ $.fn.remove = function( selector, keepData ) {
return this.each(function() {
if ( !keepData ) {
if ( !selector || $.filter( selector, [ this ] ).length ) {
- $( "*", this ).add( this ).each(function() {
+ $( "*", this ).add( [ this ] ).each(function() {
$( this ).triggerHandler( "remove" );
});
}