Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397
authorColin Snover <github.com@zetafleet.com>
Tue, 14 Dec 2010 06:37:11 +0000 (00:37 -0600)
committerColin Snover <github.com@zetafleet.com>
Tue, 14 Dec 2010 06:37:11 +0000 (00:37 -0600)
1  2 
src/effects.js

diff --combined src/effects.js
@@@ -2,7 -2,7 +2,7 @@@
  
  var elemdisplay = {},
        rfxtypes = /^(?:toggle|show|hide)$/,
 -      rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
 +      rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
        timerId,
        fxAttrs = [
                // height animations
@@@ -61,8 -61,8 +61,8 @@@ jQuery.fn.extend(
                } else {
                        for ( var i = 0, j = this.length; i < j; i++ ) {
                                var display = jQuery.css( this[i], "display" );
-                               if ( display !== "none" ) {
+         
+                               if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
                                        jQuery.data( this[i], "olddisplay", display );
                                }
                        }