- Notifications
You must be signed in to change notification settings - Fork 722
Closed
Description
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:
- There are two define() blocks in jquery.keyboard.js. One for the keyboard and one for the caret plugin. Keyboard has an undeclared dependency on the caret plugin but is first in the source order.
- Keyboard invokes caret plugin on domReady:
$( function(){ $keyboard.checkCaretSupport(); });- But when loading via AMD, the DOM is ready before keyboard.js loads, so the call is not properly deferred. Changing the order of the two plugins in the source fixes the immediate problem, but the two define()'d modules confuse require.js
Trying to figure out how to postpone dom ready and/or declare the dependency. Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels