Search
WindowHost.dispose Method
See Also
 






Container.dispose override.

Namespace: MindFusion.Common.UI
File: WindowHost.js

 Syntax

JavaScript  Copy Code

function dispose ()

 Example

The following code shows an event handler of the itemClick event of a ToolStrip. If a Window-instance called "window" is loaded, we detach its event handlers and dispose it:

JavaScript  Copy Code
// This is the handler function of an ToolStrip itemClick event.
// If the window is currently visible it will be removed.
function closeButtonClicked(sender, args)
{
  if (window.loaded)
  { 
        window.detach();
 window.dispose();
   }
}

 See Also