Jakobo/inject — Issue #77: Determine jQuery Support
Author: Jakobo
Created: 2012-01-06 17:59:08+00:00
State: open

https://github.com/amdjs/amdjs-api/wiki/jQuery-and-AMD

We have opted to "true", which means we should add some awareness of loading multiple jQuery versions. What are everyone's thoughts on how to do this?

1. simply document the warnings associated with loading multiple jQuery items
2. modify `define` to be keenly aware of jQuery
3. disable jQuery AMD and encourage instead the use of pointcuts
4. find some way to inject pointcuts onto the define() methodology

4 sounds the cleanest actually from a programming perspective:

```javascript
require.addDefineRule("jquery", {
before: function() {},
after: function() {
// jQuery.jquery.... this contains the version of jQuery... we just need to map it
require.register("jQuery@"+jQuery.jquery, jQuery);
jQuery.noConflict();
}
});
```