Skip to main content

Bug Tracker

Side navigation

#10746 closed bug (invalid)

Opened November 10, 2011 07:37AM UTC

Closed November 10, 2011 04:08PM UTC

Last modified November 11, 2011 03:39AM UTC

jQuery1.7 load issue as an AMD module

Reported by: Owned by:
Priority: low Milestone: None
Component: core Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

There is an issue when we try to load jQuery1.7 as an AMD module:


use an AMD Loader, then try it:


define.amd.jQuery = {};

require('jquery', function($){







The result of No.1 is:

function (a, b) {

return new e.fn.init(a, b, h);


The result of No.2 is:

$(document.body).css is not a function

Could you please help to figure it out?

Attachments (0)
Change History (2)

Changed November 10, 2011 04:08PM UTC by timmywil comment:1

component: unfiledcore
priority: undecidedlow
resolution: → invalid
status: newclosed

Please ask for support on the forums or on the #jquery irc channel.

Changed November 11, 2011 03:39AM UTC by anonymous comment:2

I think this bug is caused by the position of AMD define inside the source code.

After the AMD define, there are a lot of feature definition, so, although the jQuery has been passed to the "require" when the AMD define ran, the callback of require still cannot access the methods which defined after jQuer AMD definition.