A real world example could be send local params (ie: handler1 params) to a inner callback being rised, ie: the confirm box callback name it (handler2).
So if you create a delegate in the handler2 (the confirm fn) then you will able to send handler1 params…
This is very handy to avoid global vars or outer scope vars.
August 28th, 2009 at 11:52 am
A real-world example of using createDelegate would make this video helpful.
October 8th, 2009 at 11:08 am
In response to bb:
A real world example could be send local params (ie: handler1 params) to a inner callback being rised, ie: the confirm box callback name it (handler2).
So if you create a delegate in the handler2 (the confirm fn) then you will able to send handler1 params…
This is very handy to avoid global vars or outer scope vars.