mirror of
https://github.com/Ekokumppanit/Lentolaskuri.git
synced 2026-02-14 18:47:18 +00:00
!
This commit is contained in:
@@ -10,11 +10,11 @@ define([
|
||||
initialize: function (model, opts) {
|
||||
this.route = opts.route;
|
||||
|
||||
this.total = new Total();
|
||||
|
||||
this.route.on('add', this.newLeg, this);
|
||||
this.route.on('remove', this.calculate, this);
|
||||
this.route.on('sort', this.calculate, this);
|
||||
|
||||
this.total = new Total();
|
||||
},
|
||||
newLeg: function (model, collection, options) {
|
||||
if (this.route.length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user