[M] Shorten var name "activeIndex" to index

This commit is contained in:
Hykilpikonna
2019-12-21 13:20:08 -05:00
parent f8f1c1f8a3
commit dfbe255191
+5 -2
View File
@@ -8,7 +8,10 @@ export interface Index
export default class NavController
{
activeIndex: Index;
// Current index
index: Index;
// Callback
updateCallback?: () => void;
constructor()
@@ -29,7 +32,7 @@ export default class NavController
if (e.state)
{
// Restore previous tab
console.log(`onPopState: Current: ${this.activeIndex}, Previous: ${e.state.lastTab}`);
console.log(`onPopState: Current: ${this.index}, Previous: ${e.state.lastTab}`);
this.updateIndex(e.state.lastTab, false);
}
};