You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(function(root,factory){if(typeofdefine==='function'&&define.amd){//Allow using this built library as an AMD module//in another project. That other project will only//see this AMD call, not the internal modules in//the closure below.define(factory);}else{//Browser globals case. Just assign the//result to a property on the global.root.Bam=factory();}}(this,function(){});
The define(Identifier) is not seen as a define() call, so the internals of the lib are scanned, and a loader plugin resource is found.
Ideally, if define(Identifier), backtrack in the token stream to check for a define.amd check, and if there, treat it as an AMD define call and skip internal parsing?
Hmm, the rest of the file still may be scanned regardless? Consider stopping scanning in this case. Needs some thought though, may get bumped to a later release.
The text was updated successfully, but these errors were encountered:
A result of this thread:
http://groups.google.com/group/requirejs/browse_thread/thread/b4f701db210f980c
With this block
The define(Identifier) is not seen as a define() call, so the internals of the lib are scanned, and a loader plugin resource is found.
Ideally, if define(Identifier), backtrack in the token stream to check for a define.amd check, and if there, treat it as an AMD define call and skip internal parsing?
Hmm, the rest of the file still may be scanned regardless? Consider stopping scanning in this case. Needs some thought though, may get bumped to a later release.
The text was updated successfully, but these errors were encountered: