-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
How about adding the option to pass tabsPostProcessors just one function that gets executed for all tabs? I've seen this kind of code quite often
var tabsPostProcessors = tabs.map(function(tab) {
return function($li, $a) {
$a.click(function() {
console.log("anchor click! tab.tooltip: ", tab.tooltip);
});
};
});
This is hard to read and hard to maintain as you have to change tabsPostProcessors
whenever the number of tabs changes.
Similarly one can imagine the option to pass tabsLiContent just one generic string that is used for all tabs.
Metadata
Metadata
Assignees
Labels
No labels