JS closures - Passing a function to a child, how should the shared object be accessed
- by slicedtoad
I have a design and am wondering what the appropriate way to access variables is. I'll demonstrate with this example since I can't seem to describe it better than the title.
Term is an object representing a bunch of time data (a repeating duration of time defined by a bunch of attributes)
Term has some print functionality but does not implement…