Commit 67a79c55 authored by Sindre Sorhus's avatar Sindre Sorhus

Prevent MarionetteJS and Thorax from localStorage collision

parent 5945668e
...@@ -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 : '',
......
...@@ -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() {
......
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