I have a case where the flot graph and the config it's pointing to is being torn down in such a way that the tooltipOptions.cssClass property no longer exists by the time getDomElement() is called.
This checks for its existence and returns a dummy div if it does not exist, to keep from throwing an undefined error.
I have a case where the flot graph and the config it's pointing to is being torn down in such a way that the tooltipOptions.cssClass property no longer exists by the time getDomElement() is called.
This checks for its existence and returns a dummy div if it does not exist, to keep from throwing an undefined error.