Created
May 22, 2015 03:57
-
-
Save panphora/37ac9020982185e58e0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Template.DiscoverPage.helpers({ | |
currentTabIs: function (tabName) { | |
return Template.instance().currentTabIs(tabName); | |
}, | |
selectedIfCurrentTabIs: function (tabName) { | |
if (Template.instance().currentTabIs(tabName)) { | |
return 'selected'; | |
} else { | |
return ''; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment