mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
committed by
Oleg Gaidarenko
parent
b59b819ffe
commit
835e8c4ae3
@@ -1,12 +1,11 @@
|
||||
define([
|
||||
"../core",
|
||||
"../var/rnotwhite",
|
||||
"../var/strundefined",
|
||||
"../core/access",
|
||||
"./support",
|
||||
"./val",
|
||||
"../selector"
|
||||
], function( jQuery, rnotwhite, strundefined, access, support ) {
|
||||
], function( jQuery, rnotwhite, access, support ) {
|
||||
|
||||
var nodeHook, boolHook,
|
||||
attrHandle = jQuery.expr.attrHandle,
|
||||
@@ -37,7 +36,7 @@ jQuery.extend({
|
||||
}
|
||||
|
||||
// Fallback to prop when attributes are not supported
|
||||
if ( typeof elem.getAttribute === strundefined ) {
|
||||
if ( typeof elem.getAttribute === "undefined" ) {
|
||||
return jQuery.prop( elem, name, value );
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
define([
|
||||
"../core",
|
||||
"../var/rnotwhite",
|
||||
"../var/strundefined",
|
||||
"../core/init"
|
||||
], function( jQuery, rnotwhite, strundefined ) {
|
||||
], function( jQuery, rnotwhite ) {
|
||||
|
||||
var rclass = /[\t\r\n\f]/g;
|
||||
|
||||
@@ -127,7 +126,7 @@ jQuery.fn.extend({
|
||||
}
|
||||
|
||||
// Toggle whole class name
|
||||
} else if ( type === strundefined || type === "boolean" ) {
|
||||
} else if ( type === "undefined" || type === "boolean" ) {
|
||||
if ( this.className ) {
|
||||
// store className if set
|
||||
jQuery._data( this, "__className__", this.className );
|
||||
|
||||
Reference in New Issue
Block a user