designer.destroy()

Removes the chart designer iFrame from the DOM tree, removes DOM event listeners and removes the designer from the seatsio.charts array.

Use this method instead of removing DOM elements underneath the container div directly.

Note

Calling destroy() twice results in an error. The same goes for calling render() after the chart designer has been destroyed.