| ||||||||||||
SummaryCreates one or more functions for a JS object. | ||||||||||||
SyntaxJSBool JS_DefineFunctions(JSContext *cx, JSObject *obj, JSFunctionSpec *fs);
| ||||||||||||
DescriptionJS_DefineFunctions creates one or more functions and makes them properties (methods) of a specified object, obj .
If it successfully creates properties for all the functions specified in the array,
| ||||||||||||
NotesTo define only a single function for an object, callJS_DefineFunction .
| ||||||||||||
See Also |