Update cloneCopyEvent so that it does not create superfluous data objects when clonin...
[jquery.git] / src / effects.js
index feaf02b..6007074 100644 (file)
@@ -2,7 +2,7 @@
 
 var elemdisplay = {},
        rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
        timerId,
        fxAttrs = [
                // height animations
@@ -63,8 +63,8 @@ jQuery.fn.extend({
                                var display = jQuery.css( this[i], "display" );
         
                                if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
-                                 jQuery.data( this[i], "olddisplay", display );
-                         }                               
+                                       jQuery.data( this[i], "olddisplay", display );
+                               }
                        }
 
                        // Set the display of the elements in a second loop