UNPKG

todomvc

Version:

> Helping you select an MV\* framework

25 lines (22 loc) 703 B
/** * @author Mike Britton * * @class todomvc.Application * @link https://github.com/PureMVC/puremvc-js-demo-todomvc.git */ puremvc.define({ name: 'todomvc.Application', constructor: function() { // register the startup command and trigger it. this.facade.registerCommand( todomvc.AppConstants.STARTUP, todomvc.controller.command.StartupCommand ); this.facade.sendNotification( todomvc.AppConstants.STARTUP ); } }, // INSTANCE MEMBERS { // Define the startup notification name STARTUP: 'startup', // Get an instance of the PureMVC Facade. This creates the Model, View, and Controller instances. facade: puremvc.Facade.getInstance( todomvc.AppConstants.CORE_NAME ) } );