AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_DeleteElement2 (Function)
Summary:     Removes a specified element or numeric property from an object.
Syntax:
JSBool JS_DeleteElement2(JSContext *cx, JSObject *obj,
const char *name, jsval *rva);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     obj     JSObject *     Object from which to delete an element.
                 
     name     const char *     Name of the element to delete.
                 
     rval     jsval *     Pointer to the deleted value.
                 
Description:
JS_DeleteElement2 removes a specified element, name, from an object, obj, and stores a pointer to the deleted element in rval. If rval is NULL, the element is deleted. If an object references an element belonging to a prototype, the element reference is removed from the object, but the prototype's element is not deleted. If deletion is successful, JS_DeleteElement2 returns JS_TRUE. Otherwise it returns JS_FALSE.


See also:
JS_AliasElement
JS_ClearScope
JS_DefineElement
JS_DeleteElement
JS_GetArrayLength
JS_GetElement
JS_IsArrayObject
JS_LookupElement
JS_NewArrayObject
JS_SetArrayLength
JS_SetElement

[sh-index] Back to list of manuals