Last Updated: February 25, 2016
·
2.623K
· mattcodez

BackboneJS: On vs. Bind vs. listenTo

Bind is just an alias for On. Then listenTo is a newer event system that doesn't force you to manually unbind (or off()) your handlers. Generally listenTo is what you want to use unless you have a good reason not to.

1 Response
Add your response

nice. - thanks for the tip.

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside