Fix IE unsupported javascript construction (#2736)

tokarchuk/v1.17
Lauris BH 7 years ago committed by Lunny Xiao
parent 847272a70d
commit 222244836f
  1. 4
      public/js/index.js

@ -1886,14 +1886,14 @@ function initFilterBranchTagDropdown(selector) {
} }
return null; return null;
}, },
getSelectedIndexInFiltered() { getSelectedIndexInFiltered: function() {
for (var i = 0, j = this.filteredItems.length; i < j; ++i) { for (var i = 0, j = this.filteredItems.length; i < j; ++i) {
if (this.filteredItems[i].selected) if (this.filteredItems[i].selected)
return i; return i;
} }
return -1; return -1;
}, },
scrollToActive() { scrollToActive: function() {
var el = this.$refs['listItem' + this.active]; var el = this.$refs['listItem' + this.active];
if (!el || el.length === 0) { if (!el || el.length === 0) {
return; return;

Loading…
Cancel
Save