O'Reilly logo

Getting Started with Backbone Marionette by Arturo Soto, Raymundo Armendariz

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

Using the Backbone.BabySitter object

With the value that they provide, two objects made its way out of the Marionette library and can be used individually by including them in your scripts or using the blended version of Marionette. One is the Backbone.Wreqr.EventAggregator object and the other is the Backbone.BabySitter object, which is the one that we are about to discuss.

This object helps us to keep track of views and to manage them. These views can be contained within another view or another object that needs to keep track of these views.

The BabySitter object can be used to contain views instead of regions. The responsibility of RegionManager is to contain and perform actions on regions within your application. The BabySitter object has the ...

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