I have a variable defined like this :
Var France ={
'Nice': {
inputs: _.extend({
attrs: {
text : inp({
text: { group: 'data', index: 1 },
'font-size': { group: 'text', index: 2 },
'font-family': { group: 'text', index: 3 },
'font-weight': { group: 'text', index: 4 },
}),
image: inp({
'xlink:href': { group: 'presentation', index: 1 }
})
},
}),
groups: cities
}};
var Paris = {
inputs: _.extend({
attrs: {
text : inp({
text: { group: 'data', index: 1 },
'font-size': { group: 'text', index: 2 },
'font-family': { group: 'text', index: 3 },
'font-weight': { group: 'text', index: 4 },
}),
image: inp({
'xlink:href': { group: 'presentation', index: 1 }
})
},
}),
groups: cities
};
How can i push another city in France dynamically, like $(France).push(Paris) itried this but it dosent work, how can i make this work ?