Modified a method name.

This commit is contained in:
cither1
2015-12-18 00:22:27 +09:00
parent 78ba6e4154
commit 76352a94c6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ function onsTabbar(tabBar: TabbarView): void {
keepPage: true
};
tabBar.setActiveTab(2, options);
var activeTab: number = tabBar.getActiveTab();
var activeTab: number = tabBar.getActiveTabIndex();
tabBar.loadPage('myPage.html');
tabBar.on('eventName', null);
tabBar.once('eventName', null);
+1 -1
View File
@@ -634,7 +634,7 @@ interface TabbarView {
* @return {Number} The index of the currently active tab
* @description Returns tab index on current active tab. If active tab is not found, returns -1
*/
getActiveTab(): number;
getActiveTabIndex(): number;
/**
* @param {String} url Page URL. Can be either an HTML document or an <code>&lt;ons-template&gt;</code>
* @description Displays a new page without changing the active index