Permalink
Browse files

redundant variable assignment

  • Loading branch information...
jsoverson committed Aug 25, 2012
1 parent 3ed88ab commit bfe42450197af21118d2965ee7eedf2b3d6d3893
@@ -3,7 +3,7 @@ define(['backbone','models/Todo','lib/backbone-localStorage'],function(Backbone,
function isCompleted(todo) { return todo.get('completed'); }
- var Todos = Backbone.Collection.extend({
+ return Backbone.Collection.extend({
model: Todo,
localStorage: new Backbone.LocalStorage('todos-backbone'),
@@ -18,5 +18,4 @@ define(['backbone','models/Todo','lib/backbone-localStorage'],function(Backbone,
}
});
- return Todos;
});
@@ -2,7 +2,7 @@
define(['backbone','lib/backbone-localStorage'],function(Backbone){
'use strict';
- var Todo = Backbone.Model.extend({
+ return Backbone.Model.extend({
localStorage: new Backbone.LocalStorage('todos-backbone'),
defaults: {
title : '',
@@ -17,6 +17,5 @@ define(['backbone','lib/backbone-localStorage'],function(Backbone){
}
});
- return Todo;
});

0 comments on commit bfe4245

Please sign in to comment.