0

Recently, I have started working on a project and in the code base I am finding lots of this.module statements (not this.model). As a beginner in backbone, I have no idea when should I use this and why? Any explanation would be really helpful.

Sharif Mamun
  • 3,508
  • 5
  • 32
  • 51

1 Answers1

1

Modules come from Marionette.js

Marionette Modules allow you to create modular encapsulated logic. They can be used to split apart large applications into multiple files, and to build individual components of your app.

Here is a docs

aleha_84
  • 8,309
  • 2
  • 38
  • 46
  • Thanks, that's perfect. It inherits things from other classes so that we don't need to define/write the same things again and again. – Sharif Mamun Dec 25 '14 at 19:00