remove a thing

This commit is contained in:
John Bintz 2011-05-19 22:31:27 -04:00
parent 0ba8019c64
commit 7ff9dc5ff9
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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);
}
});