Backbone-relational
Backbone-relational copied to clipboard
"TypeError: Attempted to assign to readonly property" on Safari 6
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