Created
May 13, 2015 19:05
-
-
Save beckettkev/76ddc1851a0253d8a019 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
var _totalLoadedTemplates = 0; | |
var _requiredAmountOfTemplates = 3; //Let's say you need 3 templates to load before you run your code | |
$.SubscriptionEvent('myDisplayTemplateLoadingCheck').subscribe ( function (data ) { | |
totalLoadedTemplates += 1; | |
if (_totalLoadedTemplates === _requiredAmountOfTemplates) { | |
//your code goes here | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment