Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module definition does not work as intended when array is provided as additional argument #2

Closed
stalmok opened this issue Apr 6, 2015 · 0 comments · Fixed by #3
Closed

Comments

@stalmok
Copy link
Contributor

stalmok commented Apr 6, 2015

If array is provided as additional argument to module definition it gets flattened into separate arguments:

MyApp.module("MyModule", function(MyModule, MyApp, Backbone, Marionette, $, _, arg1, arg2){
    // arg1 === 1;
    // arg2 === 2;
}, [1, 2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant