I am working on a project using the following namespacing scheme:
var abc = {};
abc.models = {};
abc.views = {};
abc.models.Collection = Backbone.Collection.extend({});
When I seek to create a new collection I receive the following error
var collection = new abc.models.Collection({this:"that"});
TypeError: Object #<Object> has no method '_reset'
when I moved the constructor to abc.Collection the error stopped and everything started working as needed.
Can someone please help me understand why this is?
I should also add that this is part of a multi-file application where each file is wrapped with the following:
(function($, abc){
//module contents here
}(jQuery, abc));
_resetmethod in Backbone.Collection but there's not enough information here to know what's going wrong.