JavaScript-1.5 Reference

JS_ClearScope Function

Summary

Removes all properties associated with an object.

Syntax

void JS_ClearScope(JSContext *cx, JSObject *obj);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
objJSObject *Object from which to delete all properties.

Description

JS_ClearScope removes all properties and elements from obj in a single operation. To remove a single property from an object, call JS_DeleteProperty, and to remove a single array object element, call JS_DeleteElement.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_DeleteElement | JS_DeleteProperty | JS_GetScopeChain ]

This page was generated by APIDOC