I want to use an object globally in Backbone Application. I was using jQuery MObile Application before.
To have a global variable, I created a file named Configuration.js which have the scripts,
var MyApp = MyApp || {};
MyApp.Configuration = MyApp.Configuration || {
OrganizationUniversalId: 'abcd-efgh-1234',
ServiceEndpoint: 'http://myapp.net/',
GcmSenderId : "123456789"
};
From other javascript files, the property can be obtained by MyApp.Configuration.ServiceEndpoint
This seems not to work in my Backbone application, why?