Better explained with code, is there a way around this error? Im trying to simulate a namespace.
window.SomeNamespace = {
Notification: Backbone.Model.extend(),
Notifications: Backbone.Collection.extend({
model: SomeNamespace.Notification //error here. SomeNamespace is not defined
}),
};
Backbone.Model.extend()should probably just benew Backbone.Model