documentcloud/backbone — Issue #669: url not set to a collection at initialization
Author: doomhz
Created: 2011-10-14 15:29:47+00:00
State: open

If I create a new Collection object with a "url" attribute - it's not passed to the collection as an attribute:

var myCollection = new Backbone.Collection([], {url: '/users'});
myCollection.fetch()

Console:
A "url" property or function must be specified
[Break On This Error] throw new Error('A "url" property or function must be specified');