]> source.dussan.org Git - jquery.git/commitdiff
undefined should be as good as null here 326/head
authorlouisremi <louisremi@louisremi-laptop.(none)>
Fri, 15 Apr 2011 14:33:21 +0000 (16:33 +0200)
committerlouisremi <louisremi@louisremi-laptop.(none)>
Fri, 15 Apr 2011 14:33:21 +0000 (16:33 +0200)
src/effects.js

index ba33d8039b75439b0823f2549e00814a41dc7c51..2c7b44cb059d2adcf2fae27c6c9418196fa290fa 100644 (file)
@@ -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" );