File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ define( [
77var rclass = / [ \t \r \n \f ] / g;
88
99function getClass ( elem ) {
10- return elem . getAttribute && elem . getAttribute ( "class" ) || "" ;
10+ return jQuery . attr ( elem , "class" ) || "" ;
1111}
1212
1313jQuery . fn . extend ( {
@@ -40,7 +40,7 @@ jQuery.fn.extend( {
4040 // only assign if different to avoid unneeded rendering.
4141 finalValue = jQuery . trim ( cur ) ;
4242 if ( curValue !== finalValue ) {
43- elem . setAttribute ( "class" , finalValue ) ;
43+ jQuery . attr ( elem , "class" , finalValue ) ;
4444 }
4545 }
4646 }
@@ -86,7 +86,7 @@ jQuery.fn.extend( {
8686 // Only assign if different to avoid unneeded rendering.
8787 finalValue = jQuery . trim ( cur ) ;
8888 if ( curValue !== finalValue ) {
89- elem . setAttribute ( "class" , finalValue ) ;
89+ jQuery . attr ( elem , "class" , finalValue ) ;
9090 }
9191 }
9292 }
You can’t perform that action at this time.
0 commit comments