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
Sven Franck
todomvc
Commits
32160f11
Commit
32160f11
authored
Mar 08, 2015
by
TasteBot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the build files for gh-pages [ci skip]
parent
609bcbfd
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
369 additions
and
130 deletions
+369
-130
examples/backbone_marionette/js/TodoMVC.Layout.js
examples/backbone_marionette/js/TodoMVC.Layout.js
+10
-0
examples/backbone_marionette/js/TodoMVC.TodoList.js
examples/backbone_marionette/js/TodoMVC.TodoList.js
+3
-3
examples/backbone_marionette/js/TodoMVC.js
examples/backbone_marionette/js/TodoMVC.js
+9
-8
examples/backbone_marionette/node_modules/backbone.marionette/lib/backbone.marionette.js
...de_modules/backbone.marionette/lib/backbone.marionette.js
+346
-118
examples/backbone_marionette/package.json
examples/backbone_marionette/package.json
+1
-1
No files found.
examples/backbone_marionette/js/TodoMVC.Layout.js
View file @
32160f11
...
...
@@ -2,6 +2,16 @@
'
use strict
'
;
TodoMVC
.
module
(
'
Layout
'
,
function
(
Layout
,
App
,
Backbone
)
{
Layout
.
Root
=
Backbone
.
Marionette
.
LayoutView
.
extend
({
el
:
'
#todoapp
'
,
regions
:
{
header
:
'
#header
'
,
main
:
'
#main
'
,
footer
:
'
#footer
'
}
});
// Layout Header View
// ------------------
Layout
.
Header
=
Backbone
.
Marionette
.
ItemView
.
extend
({
...
...
examples/backbone_marionette/js/TodoMVC.TodoList.js
View file @
32160f11
...
...
@@ -34,18 +34,18 @@ TodoMVC.module('TodoList', function (TodoList, App, Backbone, Marionette) {
var
header
=
new
App
.
Layout
.
Header
({
collection
:
todoList
});
App
.
header
.
show
(
header
);
App
.
root
.
showChildView
(
'
header
'
,
header
);
},
showFooter
:
function
(
todoList
)
{
var
footer
=
new
App
.
Layout
.
Footer
({
collection
:
todoList
});
App
.
footer
.
show
(
footer
);
App
.
root
.
showChildView
(
'
footer
'
,
footer
);
},
showTodoList
:
function
(
todoList
)
{
App
.
main
.
show
(
new
TodoList
.
Views
.
ListView
({
App
.
root
.
showChildView
(
'
main
'
,
new
TodoList
.
Views
.
ListView
({
collection
:
todoList
}));
},
...
...
examples/backbone_marionette/js/TodoMVC.js
View file @
32160f11
...
...
@@ -3,7 +3,13 @@
// TodoMVC is global for developing in the console
// and functional testing.
window
.
TodoMVC
=
new
Backbone
.
Marionette
.
Application
();
var
App
=
Backbone
.
Marionette
.
Application
.
extend
({
setRootLayout
:
function
()
{
this
.
root
=
new
TodoMVC
.
Layout
.
Root
();
}
});
window
.
TodoMVC
=
new
App
();
(
function
()
{
var
filterState
=
new
Backbone
.
Model
({
...
...
@@ -15,12 +21,7 @@ window.TodoMVC = new Backbone.Marionette.Application();
});
})();
TodoMVC
.
addRegions
({
header
:
'
#header
'
,
main
:
'
#main
'
,
footer
:
'
#footer
'
});
TodoMVC
.
on
(
'
start
'
,
function
()
{
TodoMVC
.
setRootLayout
();
Backbone
.
history
.
start
();
});
examples/backbone_marionette/node_modules/backbone.marionette/lib/backbone.marionette.js
View file @
32160f11
This diff is collapsed.
Click to expand it.
examples/backbone_marionette/package.json
View file @
32160f11
...
...
@@ -3,7 +3,7 @@
"dependencies"
:
{
"backbone"
:
"^1.1.2"
,
"backbone.localstorage"
:
"^1.1.6"
,
"backbone.marionette"
:
"^2.
3.2
"
,
"backbone.marionette"
:
"^2.
4.1
"
,
"jquery"
:
"^1.11.2"
,
"todomvc-app-css"
:
"^1.0.1"
,
"todomvc-common"
:
"^1.0.1"
,
...
...
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