mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
undefined should be as good as null here
This commit is contained in:
parent
7bc8227d29
commit
bcc8187b05
10
src/effects.js
vendored
10
src/effects.js
vendored
@ -1,8 +1,7 @@
|
||||
(function( jQuery ) {
|
||||
|
||||
var elemdisplay = {},
|
||||
iframe = null,
|
||||
iframeDoc = null,
|
||||
iframe, iframeDoc,
|
||||
rfxtypes = /^(?:toggle|show|hide)$/,
|
||||
rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
|
||||
timerId,
|
||||
@ -547,12 +546,9 @@ function defaultDisplay( nodeName ) {
|
||||
|
||||
elem.remove();
|
||||
|
||||
// If the simple way fails,
|
||||
// get element's real default display by attaching it to a temp iframe
|
||||
if ( display === "none" || display === "" ) {
|
||||
|
||||
// Get element's real default display by attaching it to a temp iframe
|
||||
// Conritbutions from Louis Remi and Julian Aurbourg
|
||||
// based on recommendation by Louis Remi
|
||||
|
||||
// No iframe to use yet, so create it
|
||||
if ( !iframe ) {
|
||||
iframe = document.createElement( "iframe" );
|
||||
|
Loading…
Reference in New Issue
Block a user