This project is archived and is in readonly mode.

#528 ✓resolved
Dan

Chain.Wait breaks chainComplete event

Reported by Dan | February 28th, 2011 @ 12:57 AM | in 1.3.2.1

When creating an Fx chain, the use of the wait function causes the chainComplete event to not behave as I would expect.

Example:

new Fx.Tween(myElement, { 
    link: 'chain',
    property: 'opacity',
    onChainComplete: function(item) { console.log('Complete'); },
}).start(1).wait(1000).start(0);

This results in "Complete" being logged twice, once at the end of the first start() and again at the end of the final start(). I assume that since the wait function should be extending the chain then this behaviour is incorrect.

This was tested with MooTools More v1.3.1.1

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages