From 1c4f4c2494a97d0088e48405c1f8f4f48846f180 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 24 Dec 2014 01:07:57 +0100 Subject: web: duplicate, delete, replay flows --- web/src/js/store/store.js | 2 +- web/src/js/store/view.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'web/src/js/store') diff --git a/web/src/js/store/store.js b/web/src/js/store/store.js index cc862aeb..ce5c0338 100644 --- a/web/src/js/store/store.js +++ b/web/src/js/store/store.js @@ -19,7 +19,7 @@ _.extend(ListStore.prototype, EventEmitter.prototype, { this.emit("update", elem); }, remove: function (elem_id) { - if (!(elem.id in this._pos_map)) { + if (!(elem_id in this._pos_map)) { return; } this.list.splice(this._pos_map[elem_id], 1); diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js index 2b80292a..9619f994 100644 --- a/web/src/js/store/view.js +++ b/web/src/js/store/view.js @@ -32,8 +32,8 @@ _.extend(StoreView.prototype, EventEmitter.prototype, { this.store.removeListener("update", this.update); this.store.removeListener("remove", this.remove); this.store.removeListener("recalculate", this.recalculate); - }, - recalculate: function (filt, sortfun) { + }, + recalculate: function (filt, sortfun) { if (filt) { this.filt = filt.bind(this); } -- cgit v1.2.3