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 @@ ...@@ -26,13 +26,13 @@
<strong><%= activeCount %></strong> <%= activeCountLabel() %> <strong><%= activeCount %></strong> <%= activeCountLabel() %>
</span> </span>
<ul id="filters"> <ul id="filters">
<li> <li class="all">
<a href="#">All</a> <a href="#">All</a>
</li> </li>
<li> <li class="active">
<a href="#active">Active</a> <a href="#active">Active</a>
</li> </li>
<li> <li class="completed">
<a href="#completed">Completed</a> <a href="#completed">Completed</a>
</li> </li>
</ul> </ul>
......
...@@ -38,7 +38,11 @@ TodoMVC.module('Layout', function (Layout, App, Backbone) { ...@@ -38,7 +38,11 @@ TodoMVC.module('Layout', function (Layout, App, Backbone) {
// UI bindings create cached attributes that // UI bindings create cached attributes that
// point to jQuery selected objects // point to jQuery selected objects
ui: { ui: {
filters: '#filters a' filters: '#filters a',
completed: '.completed a',
active: '.active a',
all: '.all a',
summary: '#todo-count'
}, },
events: { events: {
......
/*global Backbone */ /*global Backbone */
'use strict'; '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({ TodoMVC.addRegions({
header: '#header', 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