UNPKG

soma.js

Version:

soma.js is a javascript framework created to build scalable and maintainable applications.

20 lines (12 loc) 386 B
var todo = window.todo || {}; (function( window ) { 'use strict'; todo.TodoApp = soma.Application.extend({ init: function() { this.injector.mapClass( 'model', todo.Model, true ); this.injector.mapValue( 'router', new Router().init() ); this.createTemplate( todo.Template, document.getElementById( 'todoapp' ) ); } }); var app = new todo.TodoApp(); })( window );