Commit 1b1ad1df authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #906 from jasonLaster/marionette

Update Marionette example
parents 9afa4e96 bfdfba2c
......@@ -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