Closed robertocarroll closed 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/
Marionette takes a different approach apparently:
http://stackoverflow.com/questions/19252422/make-a-model-global-for-backbone-marionette
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/