What steps will reproduce the problem?
1. if you call options functions return an object and not the return value of
functions.
this issues can be fixed width this
self.option = function(optionName, value) {
var rtval = uiTabsFuncs.option.apply(this, [optionName, value]);
// if "followOnActive" is true, then move page when selection changes
if (optionName == "active")
{
// if paging is not initialized or it is not configured to
// change pages when a new tab is active, then do nothing
if (!initialized || !opts.followOnActive)
return rtval;
// find the new page based on index of the active tab
for (var i in pages) {
var start = pages[i].start;
var end = pages[i].end;
if (value >= start && value < end) {
// if the the active tab is not within the currentPage of tabs, then change pages
if (i != currentPage) {
this.tabs.hide().slice(start, end).show();
currentPage = parseInt(i);
if (currentPage == 0) {
enableButton('next');
if (!opts.cycle && start <= 0) disableButton('prev');
} else {
enableButton('prev');
if (!opts.cycle && end >= this.tabs.length) disableButton('next');
}
}
break;
}
}
}
return rtval;
}
Original issue reported on code.google.com by fofware on 25 Apr 2013 at 12:52
Original issue reported on code.google.com by
fofware
on 25 Apr 2013 at 12:52