remove a thing
This commit is contained in:
parent
0ba8019c64
commit
7ff9dc5ff9
|
@ -15,7 +15,7 @@ class window.<%= plural_object_name %>View extends Backbone.View
|
||||||
addAll: =>
|
addAll: =>
|
||||||
@collection.each(this.addOne)
|
@collection.each(this.addOne)
|
||||||
addNew: =>
|
addNew: =>
|
||||||
facility = new <%= object_name %>()
|
object = new <%= object_name %>()
|
||||||
@collection.add(facility)
|
@collection.add(object)
|
||||||
this.addOne(facility)
|
this.addOne(object)
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ var <%= plural_object_name %>View = Backbone.View.extend({
|
||||||
this.collection.each(this.addOne);
|
this.collection.each(this.addOne);
|
||||||
},
|
},
|
||||||
addNew: function() {
|
addNew: function() {
|
||||||
var facility = new <%= object_name %>();
|
var object = new <%= object_name %>();
|
||||||
this.collection.add(facility);
|
this.collection.add(object);
|
||||||
|
|
||||||
this.addOne(facility);
|
this.addOne(object);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue