Making some more adjustments to handle auto CSS properties.
[jquery.git] / src / effects.js
index 130b676..4eb725b 100644 (file)
@@ -3,6 +3,7 @@
 var elemdisplay = {},
        rfxtypes = /toggle|show|hide/,
        rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
+       rdashAlpha = /-([a-z])/ig,
        timerId,
        fxAttrs = [
                // height animations
@@ -11,7 +12,11 @@ var elemdisplay = {},
                [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
                // opacity animations
                [ "opacity" ]
-       ];
+       ],
+
+       fcamelCase = function( all, letter ) {
+               return letter.toUpperCase();
+       };
 
 jQuery.fn.extend({
        show: function( speed, callback ) {
@@ -344,7 +349,7 @@ jQuery.fx.prototype = {
        // Simple 'show' function
        show: function() {
                // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.css( this.elem, this.prop );
+               this.options.orig[this.prop] = jQuery.css( this.elem, this.prop, undefined, false );
                this.options.show = true;
 
                // Begin the animation
@@ -359,7 +364,7 @@ jQuery.fx.prototype = {
        // Simple 'hide' function
        hide: function() {
                // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.css( this.elem, this.prop );
+               this.options.orig[this.prop] = jQuery.css( this.elem, this.prop, undefined, false );
                this.options.hide = true;
 
                // Begin the animation