I have requirejs config:
requirejs.config({
"baseUrl": "/static/js/lib",
"paths": {
// Application
"app": "../app",
// Libs
"backbone": "backbone-min",
"underscore": "underscore-min",
"jquery": "jquery-2.1.1.min",
"datatables": "jquery.dataTables.min",
// Plugins
"css": "plugins/css.min"
},
"map": {
"*": {
// Simple aliases
"widget": "app/view/widget",
"page": "app/view/page",
"model": "app/model"
}
}
});
And I noticed that datatables trying to use jquery not from my config.
Firebug network tab shows this url: /static/js/lib/jquery.dataTables.min/js/jquery.js
When I remove module name (datatables) from jquery.dataTables.js It works fine. Datatables starts to use my jquery (/statis/js/lib/jquery-2.1.1.min).
How can I make datatable to use my jquery?