Skip to content
Permalink
Browse files

Core (widget): don't pass DOM objects to $.fn.add. Fixes #5743 ($.fn.…

…remove does not trigger remove event for <select>s)
  • Loading branch information...
sciyoshi authored and scottgonzalez committed Jul 8, 2010
1 parent 594b7f5 commit 89c0961c3849db0d804b337f2d438c822074b112
Showing with 1 addition and 1 deletion.
  1. +1 −1 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" );
});
}

3 comments on commit 89c0961

@scottgonzalez

This comment has been minimized.

Copy link
Member

scottgonzalez replied Dec 10, 2013

@sciyoshi Can you please sign our CLA?

@sciyoshi

This comment has been minimized.

Copy link
Contributor Author

sciyoshi replied Dec 14, 2013

Signed :)

@scottgonzalez

This comment has been minimized.

Copy link
Member

scottgonzalez replied Dec 14, 2013

Thanks.

Please sign in to comment.
You can’t perform that action at this time.