Skip to content

Instantly share code, notes, and snippets.

@raphaelgabbarelli
Created December 26, 2014 16:12
Show Gist options
  • Save raphaelgabbarelli/49d7a2b973b4f542f423 to your computer and use it in GitHub Desktop.
Save raphaelgabbarelli/49d7a2b973b4f542f423 to your computer and use it in GitHub Desktop.
stabbing the trucker's hitch
/**
* Trucker's hitch Inversion of Control container
*/
var TruckersHitch = function() {
var self = this;
self.dependencies = [];
this.get = function(key){
...
};
this.add = function(key, dependency){
...
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment