I would like to determine if any property of the object has changed. Sort of:
var object = { property: 'value' };
$(object).onPropertyChange(function(property, newValue){
console.log('object changed: ', property, newValue);
})
How is this possible?
source
share