mojito icon indicating copy to clipboard operation
mojito copied to clipboard

array gets concat when specialized into configurations

Open dmorilha opened this issue 12 years ago • 3 comments

We have defaults.json, master section, an array containing default elements to our mojit.

Then we have applications.json, specialized section, mojit config, an array containing more specialized elements to the same mojit (of course in a more specialized way).

We are getting a concatenated array containing first the elements of the generic array before the elements of the most specialized array.

We think arrays should be entirely replaced. What is mojito's team perspective regarding this question?

dmorilha avatar Jan 31 '13 22:01 dmorilha

FYI: blend and blend3 are both doing array concat from what I can see in the code. /cc @drewfish

caridy avatar Jan 31 '13 22:01 caridy

code example https://gist.github.com/4687222

dmorilha avatar Jan 31 '13 22:01 dmorilha

by the way the problem happened we think that could be a regression on the way mojito handled arrays.

dmorilha avatar Jan 31 '13 22:01 dmorilha