diff --git a/backbone.js b/backbone.js index 1533b0a7f..8f38f5bb7 100644 --- a/backbone.js +++ b/backbone.js @@ -259,7 +259,7 @@ }; // A list of options to be attached directly to the model, if provided. - var modelOptions = ['url', 'urlRoot', 'collection']; + var modelOptions = ['urlRoot', 'collection']; // Attach all inheritable methods to the Model prototype. _.extend(Model.prototype, Events, { diff --git a/index.html b/index.html index 941a8f2d6..c8a11ef8b 100644 --- a/index.html +++ b/index.html @@ -988,8 +988,8 @@

Backbone.Model

- {url: "..."} and/or {urlRoot: "..."} options may be passed - when creating a new model that needs to have a custom one-off URL endpoint. + {urlRoot: "..."} option may be passed when creating a new model + that needs to have a custom one-off URL endpoint.

diff --git a/test/model.js b/test/model.js index 3b196c48e..620a9917a 100644 --- a/test/model.js +++ b/test/model.js @@ -111,11 +111,9 @@ $(document).ready(function() { equal(model.url(), '/nested/1/collection/2'); }); - test('url and urlRoot are directly attached if passed in the options', 2, function () { - var model = new Backbone.Model({a: 1}, {url: '/test'}); - var model2 = new Backbone.Model({a: 2}, {urlRoot: '/test2'}); - equal(model.url, '/test'); - equal(model2.urlRoot, '/test2'); + test('urlRoot is directly attached if passed in the options', 1, function () { + var model = new Backbone.Model({a: 2}, {urlRoot: '/test'}); + equal(model.urlRoot, '/test'); }); test("underscore methods", 5, function() {