I was trying out this really simple example from the awesome \"Professional JavaScript for Web Developers\" book by Nicholas Zakas but I can\'t figure what I am doing wrong
I tried changing year to a different term, and it worked.
year
public_methods : { get: function() { return this._year; }, set: function(newValue) { if(newValue > this.originYear) { this._year = newValue; this.edition += newValue - this.originYear; } } }