Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core

This commit is contained in:
Corey Frang 2012-07-20 18:50:34 -05:00
parent 85d259483e
commit ed64ccfef4

View File

@ -29,9 +29,7 @@ $.effects.effect.slide = function( o, done ) {
// Adjust // Adjust
$.effects.save( el, props ); $.effects.save( el, props );
el.show(); el.show();
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
margin: true
});
$.effects.createWrapper( el ).css({ $.effects.createWrapper( el ).css({
overflow: "hidden" overflow: "hidden"