aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/store
diff options
context:
space:
mode:
authorJason <jason.daurus@gmail.com>2016-03-02 15:53:33 +0800
committerJason <jason.daurus@gmail.com>2016-03-02 15:59:56 +0800
commiteb190779136ad353e129bc1e5b33dcb015a21405 (patch)
tree6261c7de4a423660cb9bbcbce987144427c0b165 /web/src/js/store
parent3de89ab16c320350f20c828763b11a47cf2a2807 (diff)
downloadmitmproxy-eb190779136ad353e129bc1e5b33dcb015a21405.tar.gz
mitmproxy-eb190779136ad353e129bc1e5b33dcb015a21405.tar.bz2
mitmproxy-eb190779136ad353e129bc1e5b33dcb015a21405.zip
[web] fix StoreView.index
Diffstat (limited to 'web/src/js/store')
-rw-r--r--web/src/js/store/view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js
index 71b159bf..3ec337a1 100644
--- a/web/src/js/store/view.js
+++ b/web/src/js/store/view.js
@@ -60,7 +60,7 @@ _.extend(StoreView.prototype, EventEmitter.prototype, {
this.emit("recalculate");
},
index: function (elem) {
- return _.sortedIndex(this.list, elem, this.sortfun);
+ return _.sortedIndexBy(this.list, elem, this.sortfun);
},
add: function (elem) {
if (this.filt(elem)) {