Dispose the control.
Namespace: MindFusion.Common
File: Control.js
SyntaxJavaScript
Copy Code
|
|---|
function dispose () |
RemarksDetaches control event handlers and removes its element from the DOM, if it was internally created.
ExampleThe following code uses the dispose method to hide a Clock gauge that is no longer rendered on the web page.
JavaScript
Copy Code
|
|---|
function stopClock() document.getElementById("clock").parentNode.style.visibility = "hidden"; var clock = g.OvalGauge.find("clock"); |
See Also