Sproutcore custom getter/setter?

Custom setter/getter function would look smth like this.

Custom setter/getter function would look smth like this: bar: function(key, value){ if(value! = undefined){ this. _bar = value; } return this.

_bar; } This would simply get/set the value. To do smth on set, just add what you want after this. _bar = value, to do smth on get, just add if value == undefined.

Thanks for the answer - this is pretty much what I think won't work.. but ill try to do some tests and maybe expand the question with some more details. – hooleyhoop Mar 26 '11 at 10:42 The ToDos demo described at guides.sproutcore.com/html_based. Html includes this setter/getter pattern for the allAreDone function – Paul Beusterien Mar 29 '11 at 21:51 Thanks, @Mantas, your way doesn't work with KVO – hooleyhoop Apr 6 '11 at 13:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions