In my current Backbone app, I have no problems creating or destroying models. The changes propagate to my server without any problems. But whenever I try to do a model.save(attributes), I see a TypeError thrown at this line: https://github.com/documentcloud/backbone/blob/master/backbone.js#L117
The model is updated on the (Rails) server, but something breaks afterward. Here s the stack trace. (Sorry, line numbers refer to concatenated JS files.)
Backbone.Events.trigger() at application.js:11574
_.extend._onModelEvent() at application.js:12092
d() at (internal script):1426Backbone.Events.trigger() at
application.js:11574
_.extend.change() at application.js:11808
_.extend.set() at application.js:11680
_.extend.save() at application.js:11753
Map.mapMoveGeoPointMode() at app.js:741
(anonymous function)() at app.js:894
jQuery.event.handle() at application.js:2966
jQuery.event.add.elemData.handle.eventHandle() at application.js:2600
In previous applications, I ve had no little problems on saving models like this. Any suggestions for what to look at?
注:我不想再重复。 该研究员试图挽救一个没有URL的模型的问题。