3 ms·
> why are #get and #set acceptable ways of accessing object properties but #area isn't? Because Ember only has to recalculate the area after set is called on l
by erikpukinskis 13y ago
> why are #get and #set acceptable ways of accessing object properties but #area isn't?
Because Ember only has to recalculate the area after set is called on length or width. If area is just a function, it gets recalculated every time it's called/get'ed.