Merge pull request #7245 from cither1/onsenui-revision

Modified a method name.
This commit is contained in:
Horiuchi_H
2015-12-22 19:22:51 +09:00
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