icereval/backbone-documentmodel

Uncaught TypeError line 112

azpublic opened this issue · 3 comments

I get an exception sice the new 0.6.2 version you released earlier today.

Uncaught TypeError: Cannot call method 'call' of undefined backbone-documentmodel.js:112

(anonymous function) backbone-documentmodel.js:112
.each..forEach underscore.js:79
documentModelSet backbone-documentmodel.js:108
Backbone.Model backbone.js:254
Backbone.Model.extend.constructor backbone-documentmodel.js:324
child backbone.super.js:21
child backbone.super.js:21

This did not occur before on the exact same model.

actually all I had to do to reproduce is :

var MDL = Backbone.DocumentModel.extend({});
var b = new MDL({id:123});

Try again, I made a quick change to fully reference Object.prototype.toString.

It seems to work fine now.
Thank you.