Some Cleanup
Explore how to refine Marionette.js views by using the triggers hash to simplify event handling and reduce redundancy. Understand how to update the controller to work with trigger arguments and learn about a web storage quirk related to browser back navigation. This lesson helps you maintain organized code and ensure your Marionette application responds correctly to user interactions.
We'll cover the following...
We'll cover the following...
The triggers hash
Now that we’re using the triggers hash, let’s use it to clean up our code a bit. So far, we’ve got the following code:
Using a triggers hash, we can reduce ...