Skip to content
Permalink
Browse files

undefined should be as good as null here

  • Loading branch information...
louisremi
louisremi committed Apr 15, 2011
1 parent 7bc8227 commit bcc8187b059792d9f9c0510e23c08ae037916c7e
Showing with 3 additions and 7 deletions.
  1. +3 −7 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" );

0 comments on commit bcc8187

Please sign in to comment.
You can’t perform that action at this time.