diff options
author | Jason <jason.daurus@gmail.com> | 2016-03-02 15:53:33 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-03-02 15:59:56 +0800 |
commit | eb190779136ad353e129bc1e5b33dcb015a21405 (patch) | |
tree | 6261c7de4a423660cb9bbcbce987144427c0b165 /web/src/js/store | |
parent | 3de89ab16c320350f20c828763b11a47cf2a2807 (diff) | |
download | mitmproxy-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.js | 2 |
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)) { |