Change iteration strategy to make PhantomJS happy

This commit is contained in:
Alfredo Sumaran 2017-02-15 15:15:44 -05:00
parent ee63415c74
commit fd6e36e95b
1 changed files with 4 additions and 2 deletions

View File

@ -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;
});
});
}
}