cujojs / wire

A light, fast, flexible Javascript IOC container
Other
862 stars 71 forks source link

Use args when creating module from a ref. #169

Closed foxdonut closed 9 years ago

foxdonut commented 9 years ago

When creating a module from a ref, args should be used if included in the spec. This change adds the use of args in this scenario. Extracted getArgs function now that it is used in multiple places. Added a unit test that failed before the change and passes with the new code.

This is useful to create a module from another module by calling its function and passing arguments to obtain a new, configured module.

briancavalier commented 9 years ago

Sorry for the delay @foxdonut. This looks good. Will merge shortly.