Skip to content

Instantly share code, notes, and snippets.

@toddpi314
Created June 8, 2012 15:34
Show Gist options
  • Save toddpi314/2896190 to your computer and use it in GitHub Desktop.
Save toddpi314/2896190 to your computer and use it in GitHub Desktop.
Rich_Domain_Components_Example
// Build the loader instance and pass in your ordered list of Concrete types that implement DeepElement.ThreeOneFour.Component
var comonentLoader = new DeepElement.ThreeOneFour.Helpers.ComponentLoader(
components);
comonentLoader.load(function() {
// all components have loaded
}, function() {
// a component failed
// check the "this" context to find out which one
});​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment