wearethoughtfox / amnesty-facebook

0 stars 0 forks source link

Namespace definitions for models, collections and views #19

Closed robertocarroll closed 7 years ago

robertocarroll commented 7 years ago

Attach them to amnestyApp object.

amnestyApp.Models = {}; amnestyApp.Collections = {}; amnestyApp.Views = {};

and then define the new models, collections and views with this namespacing.

See http://codebeerstartups.com/2012/12/11-namespacing-in-backbone-js-learning-backbonejs/

robertocarroll commented 7 years ago

Marionette takes a different approach apparently:

http://stackoverflow.com/questions/19252422/make-a-model-global-for-backbone-marionette