O'Reilly logo

Better Backbone Applications with MarionetteJS by Joseph Zimmerman, Smashing Magazine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3: Views

So we’ve gotten the big guys — Application and Module — taken care of, so now we’ll get into the bits you can see: views. Backbone already has views, but they really don’t do very much for you. Marionette fills in the feature gaps, so you can skip over the vast amounts of boilerplate code, and avoid the pitfalls you could run into if you don’t know what to look out for. So let’s take a gander at what Marionette provides.

Event Binding

Up until recently, Backbone views were often mishandled, causing a horrible problem known as zombie views. The issue was caused by the views listening to events on the model, which in itself is completely harmless. The problem was that when the views were no longer needed and were discarded, they didn’t ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required