Permalink
Browse files

Attributes: fix toggleClass(boolean) in ie6/7

  • Loading branch information...
timmywil committed Jan 7, 2016
1 parent 56b9656 commit 41c83f5c016a99b0d3f39d1320799b4c11df22f3
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/attributes/classes.js
View
@@ -144,13 +144,11 @@ jQuery.fn.extend( {
// then remove the whole classname (if there was one, the above saved it).
// Otherwise bring back whatever was previously saved (if anything),
// falling back to the empty string if nothing was stored.
if ( this.setAttribute ) {
this.setAttribute( "class",
className || value === false ?
"" :
jQuery._data( this, "__className__" ) || ""
);
}
jQuery.attr( this, "class",
className || value === false ?
"" :
jQuery._data( this, "__className__" ) || ""
);
}
} );
},

1 comment on commit 41c83f5

@markelog

This comment has been minimized.

Show comment
Hide comment
@markelog

markelog Jan 7, 2016

Member

This one did it! You are the king @timmywil :-)

Member

markelog commented on 41c83f5 Jan 7, 2016

This one did it! You are the king @timmywil :-)

Please sign in to comment.