Created
December 26, 2014 16:12
-
-
Save raphaelgabbarelli/49d7a2b973b4f542f423 to your computer and use it in GitHub Desktop.
stabbing the trucker's hitch
This file contains 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
/** | |
* 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