Skip to content

Uncaught TypeError in Google Chrome 22.0.1201.0 canary #1475

@martinnormark

Description

@martinnormark

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

  1. Go to http://backbonejs.org/
  2. Open the Chrome DevTools console.
  3. Type Backbone.Model.extend({}) and hit return.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions