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
67a79c55
Commit
67a79c55
authored
Oct 20, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent MarionetteJS and Thorax from localStorage collision
parent
5945668e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
labs/architecture-examples/backbone_marionette/js/TodoMVC.Todos.js
...itecture-examples/backbone_marionette/js/TodoMVC.Todos.js
+1
-1
labs/architecture-examples/thorax/js/collections/todos.js
labs/architecture-examples/thorax/js/collections/todos.js
+1
-1
No files found.
labs/architecture-examples/backbone_marionette/js/TodoMVC.Todos.js
View file @
67a79c55
...
@@ -4,7 +4,7 @@ TodoMVC.module("Todos", function(Todos, App, Backbone, Marionette, $, _){
...
@@ -4,7 +4,7 @@ TodoMVC.module("Todos", function(Todos, App, Backbone, Marionette, $, _){
// ----------
// ----------
Todos
.
Todo
=
Backbone
.
Model
.
extend
({
Todos
.
Todo
=
Backbone
.
Model
.
extend
({
localStorage
:
new
Backbone
.
LocalStorage
(
'
todos-backbone
'
),
localStorage
:
new
Backbone
.
LocalStorage
(
'
todos-backbone
-marionettejs
'
),
defaults
:
{
defaults
:
{
title
:
''
,
title
:
''
,
...
...
labs/architecture-examples/thorax/js/collections/todos.js
View file @
67a79c55
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
model
:
window
.
app
.
Todo
,
model
:
window
.
app
.
Todo
,
// Save all of the todo items under the `"todos"` namespace.
// Save all of the todo items under the `"todos"` namespace.
localStorage
:
new
Store
(
'
todos-backbone
'
),
localStorage
:
new
Store
(
'
todos-backbone
-thorax
'
),
// Filter down the list of all todo items that are finished.
// Filter down the list of all todo items that are finished.
completed
:
function
()
{
completed
:
function
()
{
...
...
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