-
Notifications
You must be signed in to change notification settings - Fork 724
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
AMD Loading with require.js #348
Comments
Update: I inlined the jQuery.caret plugin inside the Keyboard module and everthing works great. This is probably correct for AMD and doesn't break the examples. Change here: |
Thanks @danhorner! Hopefully this last update fixes this issue. |
Opps, I didn't address the DOM ready event. I'll take a look at it. |
Thank you! Works great. The DOM ready event is incidental. The intent was obviously "Wait until the caret plugin is available", which thanks to the inlining, it now is. |
Sorry. My mistake: domReady is too soon if Keyboard is injected later with eg. with setTimeout. |
Ok, it should work properly now ;) |
Brilliant. Thanks. |
I haven't been able to load the keyboard plugin via AMD. I'm a little new at this but have encountered a couple of issues:
Trying to figure out how to postpone dom ready and/or declare the dependency. Thoughts?
The text was updated successfully, but these errors were encountered: