Skip to content

Commit

Permalink
Merge branch 'hotfix/fix-build-min' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Jun 24, 2019
2 parents 010500a + 95ad266 commit 37bf11f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
24 changes: 14 additions & 10 deletions dist/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -5142,10 +5142,12 @@
fieldIndex += 1;
}

var _loop = function _loop() {
var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2),
key = _Object$entries6$_i[0],
event = _Object$entries6$_i[1];
var _loop = function _loop(key) {
if (!events.hasOwnProperty(key)) {
return "continue";
}

var event = events[key];

_this8.$body.find('>tr:not(.no-records-found)').each(function (i, tr) {
var $tr = $(tr);
Expand All @@ -5162,8 +5164,10 @@
});
};

for (var _i7 = 0, _Object$entries6 = Object.entries(events); _i7 < _Object$entries6.length; _i7++) {
_loop();
for (var key in events) {
var _ret = _loop(key);

if (_ret === "continue") continue;
}
});
this.updateSelected();
Expand Down Expand Up @@ -5516,10 +5520,10 @@
style = Utils.calculateObjectValue(null, this.options.footerStyle, [column]);

if (style && style.css) {
for (var _i8 = 0, _Object$entries7 = Object.entries(style.css); _i8 < _Object$entries7.length; _i8++) {
var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i8], 2),
key = _Object$entries7$_i[0],
value = _Object$entries7$_i[1];
for (var _i7 = 0, _Object$entries6 = Object.entries(style.css); _i7 < _Object$entries6.length; _i7++) {
var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2),
key = _Object$entries6$_i[0],
value = _Object$entries6$_i[1];

csses.push("".concat(key, ": ").concat(value));
}
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-table.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,11 @@ class BootstrapTable {
fieldIndex += 1
}

for (const [key, event] of Object.entries(events)) {
for (const key in events) {
if (!events.hasOwnProperty(key)) {
continue
}
const event = events[key]
this.$body.find('>tr:not(.no-records-found)').each((i, tr) => {
const $tr = $(tr)
const $td = $tr.find(this.options.cardView ? '.card-view' : 'td').eq(fieldIndex)
Expand Down

0 comments on commit 37bf11f

Please sign in to comment.