Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddpi314/2875610 to your computer and use it in GitHub Desktop.
Save toddpi314/2875610 to your computer and use it in GitHub Desktop.
MooTools_Class_ManagerSample_Instancing
var myIntroductionViewInstance = new IntroductionView();
var myWizardViewInstance = new WizardView();
// Use Async Load Strategy
myIntroductionViewInstance.load(function() {
myWizardViewInstance.load(function() {
console.log('both the myWizardInstance and the myIntroductionInstance loaded');
}, function() {
console.log('load failure on the myWizardInstance');
});
}, function() {
console.log('load failure on the myIntroductionInstance');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment