Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 89c0961c3849db0d804b337f2d438c822074b112 1 parent 594b7f5
@sciyoshi sciyoshi authored scottgonzalez committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.widget.js
View
2  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

@sciyoshi Can you please sign our CLA?

@sciyoshi

Signed :)

@scottgonzalez

Thanks.

Please sign in to comment.
Something went wrong with that request. Please try again.