Return jQuery from module to get it work like original jQuery module #296

wants to merge 1 commit into from

3 participants


No description provided.

Ruby on Rails member

@hauleth Can you elaborate on the change as to how it is useful.


When using RequireJS now this code:

require(['jquery_ujs'], function($) {});

Will not work as expected, after merge will.

Ruby on Rails member

I don't really use RequireJS in any projects, so I only have passing familiarity with it. Can you explain how this would normally be used, or more specifically why we'd want to return the jQuery object instead of the rails object? I.e. why wouldn't we instead want return rails; at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment