destroy

The destroy() method destroys the instance of the ContextMenu widget.


<ul id="contextmenu1">
    <li>Open</li>
	<li>Save</li>
</ul>

<script type="text/javascript">

            $("#contextmenu1").shieldContextMenu({
                target: "body"               
            });

            
            $("#contextmenu1").swidget().destroy();

</script>