What is the Dojo equivalent to jQuery .live()?
http://api.jquery.com/live/
The only solution I found was to dojo.disconnect the event handlers and re-connect them once a dynamic piece of markup was added to the page.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
usage and demo
code – rewrites the original mixin-like
delegatefunction of dojosee ticket#11459
You can use this more generally like jQuery
delegate, not just aslive, becauseliveis basically adelegateon the document level.