Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
bfdfba2c
Commit
bfdfba2c
authored
May 27, 2014
by
Jason Laster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Marionette example
parent
9afa4e96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
labs/architecture-examples/backbone_marionette/index.html
labs/architecture-examples/backbone_marionette/index.html
+3
-3
labs/architecture-examples/backbone_marionette/js/TodoMVC.Layout.js
...tecture-examples/backbone_marionette/js/TodoMVC.Layout.js
+5
-1
labs/architecture-examples/backbone_marionette/js/TodoMVC.js
labs/architecture-examples/backbone_marionette/js/TodoMVC.js
+3
-1
No files found.
labs/architecture-examples/backbone_marionette/index.html
View file @
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
>
...
...
labs/architecture-examples/backbone_marionette/js/TodoMVC.Layout.js
View file @
bfdfba2c
...
...
@@ -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
:
{
...
...
labs/architecture-examples/backbone_marionette/js/TodoMVC.js
View file @
bfdfba2c
/*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
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment