Core: Drop strundefined variable

Ref 29838b6cab
Closes gh-1628
This commit is contained in:
Chris Antaki
2014-07-27 13:20:19 -07:00
committed by Oleg Gaidarenko
parent b59b819ffe
commit 835e8c4ae3
9 changed files with 20 additions and 31 deletions

View File

@@ -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 );
}

View File

@@ -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 );