//Configuració general
var require = {
urlArgs: "bust=" + (new Date()).getTime(),
baseUrl: 'js',
paths: {
// Core Libraries
'jquery': 'libs/jquery-1.9.1.min',
'jqm-config': 'jqm-config',
'jquerymobile': 'libs/jquery.mobile-1.3.2/jquery.mobile-1.3.2.min',
'fastclick': 'libs/fastclick',
'underscore': 'libs/underscore-min',
'backbone': 'libs/backbone-min'
},
// Sets the configuration for your third party scripts that are not AMD compatible
shim: {
'backbone': {
'deps': [ 'underscore', 'jquery' ],
'exports': 'Backbone' //attaches 'Backbone' to the window object
},
'jquerymobile': {
deps: ['jquery', 'jqm-config']
}/*,
'backbone-forms': {
deps: ['underscore', 'backbone']
},*/
}
};
//---------------------------------------------
//Backboneforms
require.paths['backbone-forms'] = 'libs/backbone-forms';
require.shim['backbone-forms'] = ['underscore', 'backbone'];