What if you just do this instead?

jQuery.easing.bounceout = function(x, t, b, c, d) {
                      if ((t/=d) < (1/2.75)) {
                              return c*(7.5625*t*t) + b;
                      } else if (t < (2/2.75)) {
                              return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
                      } else if (t < (2.5/2.75)) {
                              return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
                      } else {
                              return c*(7.5625*(t-=(2.625/2.75))*t +
.984375) + b;
                      }
              };

With the technique you were using, you were also removing the default
easing functions - probably causing errors for you.

--John

On 7/19/07, Kia Niskavaara <[EMAIL PROTECTED]> wrote:


I've removed all functions that I dont't need from the easin-plugin. But when I 
use it I get an
error. When using all functions, it works as expected.

This is the code I'm using (from the easin plugin):

jQuery.extend({
        easing: {
                bounceout: function(x, t, b, c, d) {
                        if ((t/=d) < (1/2.75)) {
                                return c*(7.5625*t*t) + b;
                        } else if (t < (2/2.75)) {
                                return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
                        } else if (t < (2.5/2.75)) {
                                return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + 
b;
                        } else {
                                return c*(7.5625*(t-=(2.625/2.75))*t + .984375) 
+ b;
                        }
                }

        }
});


What's wrong?

Reply via email to