Hi Santiago,

The clear() method is what you want to call to remove listeners from the
Dashboard, which is important to avoid memory leaks, but it leaves the
dashboard instance otherwise intact so it can be used again.  The dispose()
and isDisposed() methods are about disposing of the instance itself.    The
dispose() method does call clear() first.

Neither dispose() or clear() will do anything with the charts and controls
inside the Dashboard, since you set them up separately.


On Thu, Apr 28, 2016 at 4:50 AM, Santiago Acosta <bilbolord2...@gmail.com>
wrote:

> In connection to a topic I started at google-visualization-api/qg5-sEH3eNw
> <https://groups.google.com/forum/#!topic/google-visualization-api/qg5-sEH3eNw>
> , I found some undocumented methods that look like what I would need to
> solve one of my issues.
>
> The undocumented methods are:
>
>    - clear()
>    - dispose()
>    - isDisposed()
>
> Neither of these methods require any arguments. *isDisposed* returns
> false by default until you call the *dispose* method. I know from looking
> at the function from the console in Google Chrome that *dispose* will
> internally call clear.
>
>
> Does anyone know what these methods do?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/f674338e-f160-4880-8582-83fd8e052518%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/f674338e-f160-4880-8582-83fd8e052518%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOP8ZoanGUXF3y-ecddSTDfmgkA1cU5VqOuR1p-8Los0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to