Javascript copies object references by default, and I haven't observed anything that would lead me to believe the API does anything differently.
On Monday, August 13, 2012 7:20:33 PM UTC-4, API Developer wrote: > > Hey guys, > > I'm creating a structure that implements the ChartWrapper and was > wondering if someone could clarify some specifics as to why it works. > Currently I hold the data (google DataTable) inside of the wrapper and use > the getDataTable() and setDataTable() to access it and make small changes > to it if needed. In the cases of these functions, are they returning > references, does the setDataTable try to just update it, or does it create > an entire copy then copy that entire copy into itself. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/oboeYgI8vKIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
