(function()
{
var page = document.getElementById("hasSectionchangerPage"),
element = document.getElementById("sectionchanger"),
sectionChanger, idx=1;
page.addEventListener("pageshow", function() {
/* Create the SectionChanger object */
sectionChanger = tau.widget.SectionChanger(element, {
circular: true,
orientation: "horizontal",
useBouncingEffect: true
});
});
page.addEventListener("pagehide", function() {
/* Release the object */
sectionChanger.destroy();
});
var index = getActiveSectionIndex();
console.log("index : " + index);
})();
app.js (116) :ReferenceError: Can't find variable: getActiveSectionIndex