backbone.syphon
backbone.syphon copied to clipboard
deserialize doesnt appear to accept a model
I cant go Syphon.deserialize(view,model); Is there a reason for that ?
what would you expect that api call to do?
I think he means Syphon.deserialize(view, model.toJSON()). Could be cool if the lib did that automatically.
Ah right, you go toJSON(), yes of course. OK, I accept anyone who hasnt just landed should know how to do that.
sure that would be nice, if the item passed implements a toJSON method we call that otherwise we treat it like a regular object :)
@mark-lester @happylinks any interest in opening up a PR?
yes sure
oh ok, well, i will get my formgen working, then if nothing happens on this I will do the biz. it confused me, it would be nice to go deserialize(this,this.model)
Ah sorry, spoke before my turn :) if you want help/me to do it, let me know.
I will do,