We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b9656 commit 41c83f5Copy full SHA for 41c83f5
src/attributes/classes.js
@@ -144,13 +144,11 @@ jQuery.fn.extend( {
144
// then remove the whole classname (if there was one, the above saved it).
145
// Otherwise bring back whatever was previously saved (if anything),
146
// falling back to the empty string if nothing was stored.
147
- if ( this.setAttribute ) {
148
- this.setAttribute( "class",
149
- className || value === false ?
150
- "" :
151
- jQuery._data( this, "__className__" ) || ""
152
- );
153
- }
+ jQuery.attr( this, "class",
+ className || value === false ?
+ "" :
+ jQuery._data( this, "__className__" ) || ""
+ );
154
}
155
} );
156
},
0 commit comments