mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects Core: make removeClass work correctly with changes jQuery 1.9.0. Fixed #9015 - Inclusion of jQuery UI breaks removeClass
This commit is contained in:
parent
3aa8ad0c4a
commit
2ca4d17982
@ -38,6 +38,17 @@ asyncTest( "Parse of null for options", function() {
|
||||
});
|
||||
});
|
||||
|
||||
test( "removeClass", function() {
|
||||
expect( 3 );
|
||||
|
||||
var element = $( "<div>" );
|
||||
equal( "", element[ 0 ].className );
|
||||
element.addClass( "destroyed" );
|
||||
equal( "destroyed", element[ 0 ].className );
|
||||
element.removeClass();
|
||||
equal( "", element[ 0 ].className );
|
||||
});
|
||||
|
||||
|
||||
/* TODO: Disabled - Can't figure out why this is failing in IE 6/7
|
||||
test( "createWrapper and removeWrapper retain focused elements (#7595)", function() {
|
||||
|
4
ui/jquery.ui.effect.js
vendored
4
ui/jquery.ui.effect.js
vendored
@ -849,10 +849,10 @@ $.fn.extend({
|
||||
|
||||
_removeClass: $.fn.removeClass,
|
||||
removeClass: function( classNames, speed, easing, callback ) {
|
||||
return speed ?
|
||||
return arguments.length > 1 ?
|
||||
$.effects.animateClass.call( this,
|
||||
{ remove: classNames }, speed, easing, callback ) :
|
||||
this._removeClass( classNames );
|
||||
this._removeClass.apply( this, arguments );
|
||||
},
|
||||
|
||||
_toggleClass: $.fn.toggleClass,
|
||||
|
Loading…
Reference in New Issue
Block a user