destroy - Methods - Author API

Author API Methods


Destroys the current instance of the Author app.

You would want to use this method so that you can remove all of the Author API DOM elements from the page in your single page application, for example.

This will also restore the empty container element which was used to first initialize the app.

When re-initializing Author API, you would call the destroy() method followed by the window.LearnosityAuthor.init() method.


// Reset the instance of Author API

// Re-initialize the Author API
var authorApp = window.LearnosityAuthor.init(...);



Return value

None (undefined).

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.