File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ define( [
7
7
var rclass = / [ \t \r \n \f ] / g;
8
8
9
9
function getClass ( elem ) {
10
- return elem . getAttribute && elem . getAttribute ( "class" ) || "" ;
10
+ return jQuery . attr ( elem , "class" ) || "" ;
11
11
}
12
12
13
13
jQuery . fn . extend ( {
@@ -40,7 +40,7 @@ jQuery.fn.extend( {
40
40
// only assign if different to avoid unneeded rendering.
41
41
finalValue = jQuery . trim ( cur ) ;
42
42
if ( curValue !== finalValue ) {
43
- elem . setAttribute ( "class" , finalValue ) ;
43
+ jQuery . attr ( elem , "class" , finalValue ) ;
44
44
}
45
45
}
46
46
}
@@ -86,7 +86,7 @@ jQuery.fn.extend( {
86
86
// Only assign if different to avoid unneeded rendering.
87
87
finalValue = jQuery . trim ( cur ) ;
88
88
if ( curValue !== finalValue ) {
89
- elem . setAttribute ( "class" , finalValue ) ;
89
+ jQuery . attr ( elem , "class" , finalValue ) ;
90
90
}
91
91
}
92
92
}
You can’t perform that action at this time.
0 commit comments