I have a Backbone view as a requirejs module. The problem is that requirejs load the http://localhost/remote/script/here.js before the view is even initialized. Is it because the script isn t inside a requirejs module?
define([
jquery ,
undescore ,
backbone ,
http://localhost/remote/script/here
], function($, _, Backbone, Luajs){
var View = Backbone.View.extend({
initialize : function(options) {
},
render : function() {
this.$el.html( <p>my view</p> )
return this;
}
});
return View;
});