Re:AngularJS versus Ember
by erikpukinskis on Sunday June 16, 2013 @07:27PM
(#5890515)
> 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.
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.