window.SomeNamespace , and therefore the global SomeNamespace will not be defined until the right side = is executed. Therefore, you will have to break it into two parts.
window.SomeNamespace = { Notification: Backbone.Model.extend(), }; window.SomeNamespace.Notifications = Backbone.Collection.extend({ model: SomeNamespace.Notification });
Of course, you can do it better by using the extend() method.
source share