>
> Is this correct?
> this.__z__handleSubmit = this.form.on('submit', this.__handleSubmit.
> bindAsEventListener(this));
> Is the bindAsEventListener necessary? I want to get back the Event
> Handler so I can later destroy it with:
> this.__z__handleSubmit.stop();
>
this.__handleSubmit.bind(this) should be enough
http://proto-scripty.wikidot.com/prototype:tip-you-probably-don-t-need-bindaseventlistener
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/prototype-scriptaculous/-/EbOYyQsKdy8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.