Update cloneCopyEvent so that it does not create superfluous data objects when clonin...
[jquery.git] / src / effects.js
index 482c44d..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,7 +63,7 @@ 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 );
                                }
                        }