aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlouisremi <louisremi@louisremi-laptop.(none)>2011-04-15 16:33:21 +0200
committerlouisremi <louisremi@louisremi-laptop.(none)>2011-04-15 16:33:21 +0200
commitbcc8187b059792d9f9c0510e23c08ae037916c7e (patch)
tree7f221d833f434ef9b6a0eb557d1d0c29ed1610e3 /src
parent7bc8227d2966d0e91eb1725261fb71157bcbe854 (diff)
downloadjquery-bcc8187b059792d9f9c0510e23c08ae037916c7e.tar.gz
jquery-bcc8187b059792d9f9c0510e23c08ae037916c7e.zip
undefined should be as good as null here
Diffstat (limited to 'src')
-rw-r--r--src/effects.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/effects.js b/src/effects.js
index ba33d8039..2c7b44cb0 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -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" );