clean up JS code (1 line only)

This commit is contained in:
Barbara Borges Ribeiro
2017-07-17 20:24:28 +01:00
parent ae7f026d46
commit 0ecdcec698
5 changed files with 5 additions and 5 deletions

View File

@@ -730,7 +730,7 @@ var ShinyApp = function() {
prevTabIds.push($(this).find('> a').attr('href').replace(leadingHref,''));
});
prevTabIds = prevTabIds.map(Number);
var tabId = Math.max.apply(Math, prevTabIds) + 1;
var tabId = Math.max.apply(null, prevTabIds) + 1;
var thisId = "tab-" + $tabsetPanel.attr("data-tabsetid") + "-" + tabId;
var icon = message.icon.html;