Created
April 3, 2018 06:30
-
-
Save goofmint/0178782c913baca176f8c4a7f6fb8eb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('init', (event) => { | |
const page = event.target; | |
switch (page.id) { | |
case 'tab1': | |
h5.core.controller('#tab1', tab1Controller); | |
break; | |
case 'tab2': | |
h5.core.controller('#tab2', tab2Controller); | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment