geddesign/wrap.js — Issue #6: Wrap jQuery, underscore and Backbone
Author: Serpenthelm
Created: 2012-02-18 23:38:21+00:00
State: open

In the example I see only Backbone is wrapped.

What if I wanted to uses a wrapped version of the 3 libs separately?

I'm trying this code, can it work? Can I then remove them from the global namespace too?

```javascript
require.config({
paths: {
wrap: 'wrap',
text: 'text',
jQuery: 'libs/jquery/jquery-1.7.1.min',
Underscore: 'libs/underscore/underscore-min'
},

wrapJS: {
"jquery": {
path: 'jQuery',
attach: "$"
},
"underscore": {
path: 'Underscore',
attach: "_"
},
"backbone": {
deps: ["jQuery", "Underscore"],
attach: "Backbone",
path: "libs/backbone/backbone-min"
}
}
});
```