Commit bfdfba2c authored by Jason Laster's avatar Jason Laster

Update Marionette example

parent 9afa4e96
......@@ -26,13 +26,13 @@
<strong><%= activeCount %></strong> <%= activeCountLabel() %>
</span>
<ul id="filters">
<li>
<li class="all">
<a href="#">All</a>
</li>
<li>
<li class="active">
<a href="#active">Active</a>
</li>
<li>
<li class="completed">
<a href="#completed">Completed</a>
</li>
</ul>
......
......@@ -38,7 +38,11 @@ TodoMVC.module('Layout', function (Layout, App, Backbone) {
// UI bindings create cached attributes that
// point to jQuery selected objects
ui: {
filters: '#filters a'
filters: '#filters a',
completed: '.completed a',
active: '.active a',
all: '.all a',
summary: '#todo-count'
},
events: {
......
/*global Backbone */
'use strict';
var TodoMVC = new Backbone.Marionette.Application();
// TodoMVC is global for developing in the console
// and functional testing.
window.TodoMVC = new Backbone.Marionette.Application();
TodoMVC.addRegions({
header: '#header',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment