How can I convert a normal JavaScript event to a MochiKit wrapped event?
I can’t seem to find how to do it anywhere…
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.
Have a look in the MochiKit source code Signal.js. You’ll find the relevant section is:
To apply this to your own normal js
event, you could do something like:Is there an event that Signal.js doesn’t cover?