Commit 87e709cf authored by Mike Sherov's avatar Mike Sherov Committed by Dave Methvin

Fix regression for "-200px" in animations; closes gh-822.

Also removes fake IIFEs ffrom effects.
parent f8c02c88
(function( jQuery ) {
var fxNow, timerId, var fxNow, timerId,
rfxtypes = /^(?:toggle|show|hide)$/, rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = /^([\-+]=)?((?:\d*\.)?\d+)([a-z%]*)$/i, rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
rrun = /queueHooks$/, rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ], animationPrefilters = [ defaultPrefilter ],
tweeners = { tweeners = {
...@@ -633,5 +631,3 @@ if ( jQuery.expr && jQuery.expr.filters ) { ...@@ -633,5 +631,3 @@ if ( jQuery.expr && jQuery.expr.filters ) {
}).length; }).length;
}; };
} }
})( jQuery );
...@@ -197,6 +197,15 @@ test("animate negative margin", function() { ...@@ -197,6 +197,15 @@ test("animate negative margin", function() {
}); });
}); });
test("animate negative margin with px", function() {
expect(1);
stop();
jQuery("#foo").animate({ marginTop: "-100px" }, 100, function() {
equal( jQuery(this).css("marginTop"), "-100px", "Verify margin." );
start();
});
});
test("animate negative padding", function() { test("animate negative padding", function() {
expect(1); expect(1);
stop(); stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment