Skip to content

Conversation

@AlexanderOMara
Copy link
Contributor

AMD specification requires the factory argument to define.

According to the AMD specification for the define function the factory argument is not optional. The RequireJS implementation apparently deviates from the spec by including modules when no factory is specified. In one instance jQuery relies on this non-standard feature which breaks compatibility with spec-compliant AMD loaders. Adding an empty factory function fixes this problem.

AMD specification requires the factory argument be defined.
@timmywil timmywil self-assigned this Apr 13, 2015
@timmywil timmywil added this to the 3.0.0 milestone Apr 13, 2015
@timmywil timmywil closed this in 892625b Apr 13, 2015
timmywil pushed a commit that referenced this pull request Apr 13, 2015
AMD specification requires the factory argument be defined.

Close gh-2179
markelog pushed a commit that referenced this pull request Nov 10, 2015
AMD specification requires the factory argument be defined.

Close gh-2179
@mgol
Copy link
Member

mgol commented Mar 6, 2016

This has been backported to 1.12.0 & 2.2.0 so I changed the milestone (it used to say 3.0.0).

@mgol mgol modified the milestones: 1.12.0/2.2.0, 3.0.0 Mar 6, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants