Backbone-relational icon indicating copy to clipboard operation
Backbone-relational copied to clipboard

"TypeError: Attempted to assign to readonly property" on Safari 6

Open yagudaev opened this issue 11 years ago • 0 comments

Safari 6 seems to throw an error on the following line (494):

this.reverseRelation.type = !_.isString( this.reverseRelation.type ) ? this.reverseRelation.type :
  Backbone[ this.reverseRelation.type ] || Backbone.Relational.store.getObjectByName( this.reverseRelation.type );

Error Message: "TypeError: Attempted to assign to readonly property" Version 0.8.5

The workaround for now is to remove the strict attribute ("use strict") at the top of the backbone-relational.js file. But I would like to see it fixed. I found the same problem and workaround here: https://github.com/jrburke/requirejs/issues/392

yagudaev avatar Aug 11 '13 23:08 yagudaev