jQuery calls the AMD define() global function too early
|Reported by:||Owned by:||timmywil|
Sorry I didn't discover this until after release. :(
jQuery shouldn't call the global AMD define() function until jQuery is fully defined. By "fully defined" I mean jQuery and all of its core helpers such as jQuery.Deferred, jQuery.Callbacks, etc.
Since jQuery doesn't expose these to AMD as individual modules, other AMD modules have to assume that they are defined when the jQuery object itself is defined.
See jsFiddle: http://jsfiddle.net/unscriptable/GqfFM/
The easiest solution, imho, is to place the call to define() at the very end of the file.
-- John "@unscriptable" Hann
Change History (8)
comment:2 Changed 5 years ago by
|Component:||unfiled → core|
|Milestone:||None → 1.7.1|
|Priority:||undecided → blocker|
|Status:||new → open|