Skip to content

Instantly share code, notes, and snippets.

@toddpi314
Created June 8, 2012 15:18
Show Gist options
  • Save toddpi314/2896125 to your computer and use it in GitHub Desktop.
Save toddpi314/2896125 to your computer and use it in GitHub Desktop.
Rich_Domain_Components_2
var component1 = new DeepElement.ThreeOneFour.Component();
var component2 = new DeepElement.ThreeOneFour.Component();
var component3 = new DeepElement.ThreeOneFour.Component();
component1.load(function() {
component2.load(function() {
component3.load(function() {
// phewww! all three loadedF
}, function() {
// component3 failed to load
});
}, function() {
// component2 failed to load
});
}, function() {
// component1 failed to load
});​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment