Commit 835e8c4a authored by Chris Antaki's avatar Chris Antaki Committed by Oleg Gaidarenko

Core: Drop strundefined variable

Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b
Closes gh-1628
parent b59b819f
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 );
}
......
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 );
......
define([
"../var/strundefined",
"../var/support"
], function( strundefined, support ) {
], function( support ) {
(function() {
var shrinkWrapBlocksVal;
......@@ -31,7 +30,7 @@ define([
// Support: IE6
// Check if elements with layout shrink-wrap their children
if ( typeof div.style.zoom !== strundefined ) {
if ( typeof div.style.zoom !== "undefined" ) {
// Reset CSS: box-sizing; display; margin; border
div.style.cssText =
// Support: Firefox<29, Android 2.3
......
define([
"./core",
"./var/strundefined",
"./var/rnotwhite",
"./var/hasOwn",
"./var/slice",
......@@ -9,7 +8,7 @@ define([
"./core/init",
"./data/accepts",
"./selector"
], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support ) {
], function( jQuery, rnotwhite, hasOwn, slice, support ) {
var rformElems = /^(?:input|select|textarea)$/i,
rkeyEvent = /^key/,
......@@ -70,7 +69,7 @@ jQuery.event = {
eventHandle = elemData.handle = function( e ) {
// Discard the second event of a jQuery.event.trigger() and
// when an event is called after a page has unloaded
return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
undefined;
};
......@@ -681,7 +680,7 @@ jQuery.removeEvent = document.removeEventListener ?
// #8545, #7054, preventing memory leaks for custom events in IE6-8
// detachEvent needed property on element, by name of that event,
// to properly expose it to GC
if ( typeof elem[ name ] === strundefined ) {
if ( typeof elem[ name ] === "undefined" ) {
elem[ name ] = null;
}
......
define([
"../core",
"../var/strundefined"
], function( jQuery, strundefined ) {
"../core"
], function( jQuery ) {
var
// Map over jQuery in case of overwrite
......@@ -25,7 +24,7 @@ jQuery.noConflict = function( deep ) {
// Expose jQuery and $ identifiers, even in
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (#13566)
if ( typeof noGlobal === strundefined ) {
if ( typeof noGlobal === "undefined" ) {
window.jQuery = window.$ = jQuery;
}
......
define([
"./core",
"./var/strundefined",
"./var/concat",
"./var/push",
"./var/deletedIds",
......@@ -13,7 +12,7 @@ define([
"./traversing",
"./selector",
"./event"
], function( jQuery, strundefined, concat, push, deletedIds, access, rcheckableType, support ) {
], function( jQuery, concat, push, deletedIds, access, rcheckableType, support ) {
function createSafeFragment( document ) {
var list = nodeNames.split( "|" ),
......@@ -71,9 +70,9 @@ wrapMap.th = wrapMap.td;
function getAll( context, tag ) {
var elems, elem,
i = 0,
found = typeof context.getElementsByTagName !== strundefined ?
found = typeof context.getElementsByTagName !== "undefined" ?
context.getElementsByTagName( tag || "*" ) :
typeof context.querySelectorAll !== strundefined ?
typeof context.querySelectorAll !== "undefined" ?
context.querySelectorAll( tag || "*" ) :
undefined;
......@@ -458,7 +457,7 @@ jQuery.extend({
if ( deleteExpando ) {
delete elem[ internalKey ];
} else if ( typeof elem.removeAttribute !== strundefined ) {
} else if ( typeof elem.removeAttribute !== "undefined" ) {
elem.removeAttribute( internalKey );
} else {
......
define([
"./core",
"./var/strundefined",
"./core/access",
"./css/var/rnumnonpx",
"./css/curCSS",
......@@ -10,7 +9,7 @@ define([
"./core/init",
"./css",
"./selector" // contains
], function( jQuery, strundefined, access, rnumnonpx, curCSS, addGetHookIf, support ) {
], function( jQuery, access, rnumnonpx, curCSS, addGetHookIf, support ) {
// BuildExclude
curCSS = curCSS.curCSS;
......@@ -104,7 +103,7 @@ jQuery.fn.extend({
// If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone)
if ( typeof elem.getBoundingClientRect !== strundefined ) {
if ( typeof elem.getBoundingClientRect !== "undefined" ) {
box = elem.getBoundingClientRect();
}
win = getWindow( doc );
......
define([
"./core",
"./var/strundefined",
"./var/support",
"./core/init", // Needed for hasOwn support test
// This is listed as a dependency for build order, but it's still optional in builds
"./core/ready"
], function( jQuery, strundefined, support ) {
], function( jQuery, support ) {
// Support: IE<9
// Iteration over object's inherited properties before its own
......@@ -36,7 +35,7 @@ jQuery(function() {
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
body.appendChild( container ).appendChild( div );
if ( typeof div.style.zoom !== strundefined ) {
if ( typeof div.style.zoom !== "undefined" ) {
// Support: IE<8
// Check if natively block-level elements act like inline-block
// elements when setting their display to 'inline' and giving
......
define(function() {
return typeof undefined;
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment