Re: Correct way to push to an array in a model

2018-04-04 Thread Antranig Basman
Yes, what you've written is OK, although a shallow copy will be perfectly fine that is, curUnsavedChanges = that.model.unsavedChanges.concat([{description: description}]) or so. Yes, there will indeed be new dedicated change types as planned at https://issues.fluidproject.org/browse/FLUID-3504 -

RE: Correct way to push to an array in a model

2018-04-04 Thread Moss, Gregor
Hi all, I'm also interested in seeing what the "right" way to handle such a situation is. I recently encountered a case which was similar. I needed to create a fresh array and then add that to a model path, though I will almost certainly need to make modifications to that path in the future so