1 decade ago by Joncom
I'm making a module that looks something like this:
Technically speaking,
However,
I think the answer is yes, but I just wanted to see if others had a different view on the matter...
ig.module('game.event-manager')
.requires('impact.impact', 'game.event')
.defines(function(){
ig.EventManager = ig.Class.extend({
events: [],
update: function() {
}
});
});
Technically speaking,
ig.Class will always be available before this module is loaded, so it don&039;t really need to include #'impact.impact' for things to work.However,
ig.Class is defined in 'impact.impact' and is thus a dependency. Should I require it or not?I think the answer is yes, but I just wanted to see if others had a different view on the matter...
