In the following example, how do I modify the variable "sizeMod", which is a property of each object?
// Will be created by ids
var objs = {};
// Set up objects
$.each(ids, function(index, value){
objs[value] = {
sizeMod: 0
};
objs[value] = {
change: function(){
sizeMod += 1; // How do I write this line correctly?
}
};
});