In the latest couple of Google Chrome Canary builds, Backbone.Model.extend({}) throws an error:
Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=n(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId("c");this.changed={};this._silent=
{};this._pending={};this.set(a,{silent:!0});this.changed={};this._silent={};this._pending={};this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method '_bindRoutes'
This might be a Chrome issue, but it might be worth further investigation to avoid it ending up in one of the stable builds of Chrome, if this be a breaking change in Chrome.
Repro
- Go to http://backbonejs.org/
- Open the Chrome DevTools console.
- Type
Backbone.Model.extend({}) and hit return.
In the latest couple of Google Chrome Canary builds,
Backbone.Model.extend({})throws an error:This might be a Chrome issue, but it might be worth further investigation to avoid it ending up in one of the stable builds of Chrome, if this be a breaking change in Chrome.
Repro
Backbone.Model.extend({})and hit return.