From 7ff9dc5ff9a9610c2a38cf8416766715e1db7704 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 19 May 2011 22:31:27 -0400 Subject: [PATCH] remove a thing --- templates/collection_view.coffee.erb | 6 +++--- templates/collection_view.js.erb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/collection_view.coffee.erb b/templates/collection_view.coffee.erb index b08e762..7bc920d 100644 --- a/templates/collection_view.coffee.erb +++ b/templates/collection_view.coffee.erb @@ -15,7 +15,7 @@ class window.<%= plural_object_name %>View extends Backbone.View addAll: => @collection.each(this.addOne) addNew: => - facility = new <%= object_name %>() - @collection.add(facility) - this.addOne(facility) + object = new <%= object_name %>() + @collection.add(object) + this.addOne(object) diff --git a/templates/collection_view.js.erb b/templates/collection_view.js.erb index f6b8c2f..4887114 100644 --- a/templates/collection_view.js.erb +++ b/templates/collection_view.js.erb @@ -23,9 +23,9 @@ var <%= plural_object_name %>View = Backbone.View.extend({ this.collection.each(this.addOne); }, addNew: function() { - var facility = new <%= object_name %>(); - this.collection.add(facility); + var object = new <%= object_name %>(); + this.collection.add(object); - this.addOne(facility); + this.addOne(object); } });