ASP.NET Pack Programmer's Guide
Control.dispose Method
See Also
 





Dispose the Control.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

function dispose ()

 Remarks

Detaches control event handlers and removes its element from the DOM, if it was internally created.

 Example

The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Before the mapview is disposed we detach its event handlers. The MapView derives from Control.

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace