Allow passing { parse: true } to set - #109
Conversation
parse: true to set|
Code looks fine, tests are valid, so +1 from me, as it's only added value and no potential risk. Thanks @jackboberg! |
2a6df94 to
a105cdc
Compare
a105cdc to
11e0835
Compare
|
Hey guys, are you planning to merge this in a near future? |
There was a problem hiding this comment.
@jackboberg It looks like a few tests are being removed here. Is that intentional?
There was a problem hiding this comment.
no, that's a rebase gone awry...I'll get it fixed up tonight
There was a problem hiding this comment.
Re-rebased, thanks for the note.
11e0835 to
88289db
Compare
|
Gah, apparently I cannot comment on lines that you didn't edit. At a glance I'm reasonably sure we'll need to remove the parse in line 14, otherwise on new model initialization with |
passing `{ parse: true }` will trigger during `set`
|
Removed the constructor call. Would you like me to add a specific test to ensure parse is only called once? |
|
I think as long as the other tests pass that's fine IMO Philip Roberts
|
|
I had cherry-picked this change into our app, but just discovered an issue with it. I'm storing Amp.States in a Backbone.Collection, and if you call Overall, the current pattern is that whoever owns the State instance is responsible for doing: BB.Collection does that already, it looks like Amp.Collection does that as well, and in both cases they then pass in the same Ultimately, I think this change is useful in the case where you're calling |
Closes #106 #84