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

shim init should work without specifying exports #517

Closed
normanzb opened this issue Nov 2, 2012 · 5 comments
Closed

shim init should work without specifying exports #517

normanzb opened this issue Nov 2, 2012 · 5 comments
Milestone

Comments

@normanzb
Copy link
Contributor

normanzb commented Nov 2, 2012

currently if i don't specify exports, init function will not be called, is it by designed or a bug? any reason for it?

Expect below to work but actually it cannot:

            "jquery.fancybox" : {
                deps :[ "jquery", "jquery.easing", "jquery.mousewheel" ],
                init : function ($, easing, mousewheel) {
                    alert(1)
                    return this.$;
                }
            }
@jrburke
Copy link
Member

jrburke commented Nov 5, 2012

Hmm, this does seem odd on the face of it. Putting in the 2.1.2 bucket for consideration.

@peters
Copy link

peters commented Nov 5, 2012

+1

@kuzemchik
Copy link

+1, it is really annoying

@ghost
Copy link

ghost commented Nov 18, 2012

+1 from me too. Sometimes I want to build scaffold with no exports and fill it with them later on. We should be able to do it without additional "trickery"

@hlship
Copy link

hlship commented Nov 19, 2012

+1 Hitting this exact problem (and perhaps some others?) right now.

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

No branches or pull requests

5 participants