I know this has probably been asked everywhere but I'm not sure what it's called to look for it. Basically I have a javascript object:
var foo = Class.create();
foo.prototype = {
...
};
At this point, if somebody says myFooObject.bar = 7 I'd like it to hit some special method as bar is not defined, where I get the key (bar) and the value (7) and then I can do whatever with it.