Change iteration strategy to make PhantomJS happy
This commit is contained in:
parent
ee63415c74
commit
fd6e36e95b
|
@ -38,13 +38,15 @@
|
|||
this.$buttons.attr('data-status', newStatus);
|
||||
this.$buttons.find('> span').text(newAction);
|
||||
|
||||
for (const button of this.$buttons) {
|
||||
this.$buttons.map((button) => {
|
||||
const $button = $(button);
|
||||
|
||||
if ($button.attr('data-original-title')) {
|
||||
$button.tooltip('hide').attr('data-original-title', newAction).tooltip('fixTitle');
|
||||
}
|
||||
}
|
||||
|
||||
return button;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue