Brain dead today:
var FxChain = new Class({
name: "FxChain",
Extends: Chain,
initialize: function()
{
this.chain(arguments);
},
callChain: function()
{
if(this.cfx) this.cfx.removeEvent('onComplete', this.fnRef);
var fx = this.parent();
if(fx)
{
this.cfx = fx;
this.fnRef = this.callChain.bind(this);
fx.addEvent('onComplete', this.fnRef);
}
},
clearChain: function()
{
if(this.cfx) this.cfx.cancel();
this.parent();
}
});
