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, $, _){
// ----------
Todos.Todo = Backbone.Model.extend({
localStorage: new Backbone.LocalStorage('todos-backbone'),
localStorage: new Backbone.LocalStorage('todos-backbone-marionettejs'),
defaults: {
title : '',
......
......@@ -12,7 +12,7 @@
model: window.app.Todo,
// 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.
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