Created
December 26, 2014 16:19
-
-
Save raphaelgabbarelli/517e6b4ce39fdf20731f to your computer and use it in GitHub Desktop.
registering a type
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
this.add = function(key, dependency){ | |
for(var i = 0; i < self.dependencies.length; i++){ | |
if(self.dependencies[i].key === key){ | |
return; | |
} | |
} | |
self.dependencies.push({key : key, dependency : dependency}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment