nit: can't you put "isEdited" in the object litteral above ?