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
6d5c1f0f
Commit
6d5c1f0f
authored
Aug 06, 2013
by
Greg Lobinski
Committed by
Sindre Sorhus
Aug 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backbone naming tweaks
Closes #610 Fixes #605
parent
3debb37a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
architecture-examples/backbone/index.html
architecture-examples/backbone/index.html
+2
-2
architecture-examples/backbone/js/collections/todos.js
architecture-examples/backbone/js/collections/todos.js
+2
-2
architecture-examples/backbone/js/routers/router.js
architecture-examples/backbone/js/routers/router.js
+2
-2
architecture-examples/backbone/js/views/app-view.js
architecture-examples/backbone/js/views/app-view.js
+0
-0
architecture-examples/backbone/js/views/todo-view.js
architecture-examples/backbone/js/views/todo-view.js
+0
-0
No files found.
architecture-examples/backbone/index.html
View file @
6d5c1f0f
...
...
@@ -56,8 +56,8 @@
<script
src=
"bower_components/backbone.localStorage/backbone.localStorage.js"
></script>
<script
src=
"js/models/todo.js"
></script>
<script
src=
"js/collections/todos.js"
></script>
<script
src=
"js/views/todo
s
.js"
></script>
<script
src=
"js/views/app.js"
></script>
<script
src=
"js/views/todo
-view
.js"
></script>
<script
src=
"js/views/app
-view
.js"
></script>
<script
src=
"js/routers/router.js"
></script>
<script
src=
"js/app.js"
></script>
</body>
...
...
architecture-examples/backbone/js/collections/todos.js
View file @
6d5c1f0f
...
...
@@ -9,7 +9,7 @@ var app = app || {};
// The collection of todos is backed by *localStorage* instead of a remote
// server.
var
Todo
List
=
Backbone
.
Collection
.
extend
({
var
Todo
s
=
Backbone
.
Collection
.
extend
({
// Reference to this collection's model.
model
:
app
.
Todo
,
...
...
@@ -44,5 +44,5 @@ var app = app || {};
});
// Create our global collection of **Todos**.
app
.
todos
=
new
Todo
List
();
app
.
todos
=
new
Todo
s
();
})();
architecture-examples/backbone/js/routers/router.js
View file @
6d5c1f0f
...
...
@@ -6,7 +6,7 @@ var app = app || {};
// Todo Router
// ----------
var
Workspace
=
Backbone
.
Router
.
extend
({
var
TodoRouter
=
Backbone
.
Router
.
extend
({
routes
:
{
'
*filter
'
:
'
setFilter
'
},
...
...
@@ -21,6 +21,6 @@ var app = app || {};
}
});
app
.
TodoRouter
=
new
Workspace
();
app
.
TodoRouter
=
new
TodoRouter
();
Backbone
.
history
.
start
();
})();
architecture-examples/backbone/js/views/app.js
→
architecture-examples/backbone/js/views/app
-view
.js
View file @
6d5c1f0f
File moved
architecture-examples/backbone/js/views/todo
s
.js
→
architecture-examples/backbone/js/views/todo
-view
.js
View file @
6d5c1f0f
File moved
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