JavaScript-1.5 Reference

JS_GetParent Function

Summary

Retrieves the parent object for a specified object.

Syntax

JSObject * JS_GetParent(JSContext *cx, JSObject *obj);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
objJSObject *Object for which to retrieve the parent.

Description

JS_GetParent retrieves the parent object for a specified object, obj. If an object has a parent, JS_GetParent returns a pointer to the parent object. If the object does not have a parent, or the object finalize function is active, JS_GetParent returns NULL.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_GetConstructor | JS_SetParent ]

This page was generated by APIDOC