clear (NamespaceContextImpl - JavaScript)

Removes all namespaces.

Defined in

NamespaceContextImpl

Syntax

clear() : void

Examples

This button onclick event removes all namespaces. The namespace context and display area are global objects.
if(sessionScope.ns != null) {
	sessionScope.ns.clear();
	requestScope.msg = "Namespaces cleared";
} else {
	requestScope.msg = "No namespaces";
}