X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Feffects.js;h=60070742764c5801ab716b243756a587319cf527;hb=f5d4bf8920868c2d1f88cc4f3bfcf85c0b566b2e;hp=feaf02b5d37338cf4912bbd0ffe24f8a98209ece;hpb=00f1dfdd57fd8478688f9d201e539e0bf3946be2;p=jquery.git diff --git a/src/effects.js b/src/effects.js index feaf02b..6007074 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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