On 20/02/2012 15:29, ghazal wrote:
Hi,
chain constructor example in Docs :
http://mootools.net/docs/core/Class/Class.Extras
  implemented as is :
http://jsfiddle.net/ghazal/t7QVq/

doesn't work.

I have not used Chain in that direct fashion much but my understanding is that what you have will only setup the chain but it won't call it / advance it.

Adding myTodoList.callChain(); will start it. myTodoList.callChain(); will advance it once more.

To auto-advance, you need to add this.callChain() to the bottom of each function.

Hope that helps.
--
Dimitar Christoff

"JavaScript is to JAVA what hamster is to ham"
Personal blog: http://fragged.org/ - Twitter: @D_mitar

Reply via email to