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





Detach control event handlers.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

function detach ()

 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.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
.....................
view.detach();
view.dispose();

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace