mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #990 from gzzhanghao/index
[web] fix StoreView.index
This commit is contained in:
commit
8089752cb2
@ -6318,7 +6318,7 @@ _lodash2.default.extend(StoreView.prototype, _events.EventEmitter.prototype, {
|
||||
this.emit("recalculate");
|
||||
},
|
||||
index: function index(elem) {
|
||||
return _lodash2.default.sortedIndex(this.list, elem, this.sortfun);
|
||||
return _lodash2.default.sortedIndexBy(this.list, elem, this.sortfun);
|
||||
},
|
||||
add: function add(elem) {
|
||||
if (this.filt(elem)) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user