Bug 240500 JS_DefineFunctions APIDoc for return is wrong

r=brendan
This commit is contained in:
timeless%mozdev.org 2004-04-15 16:20:34 +00:00
Родитель e6a5ad108e
Коммит 193d430cd1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5239,7 +5239,7 @@ JSBool JS_DefineFunctions(JSContext *cx, JSObject *obj,
<DESCRIPTION>
<C>JS_DefineFunctions</C> creates one or more functions and makes them properties (methods) of a specified object, <C>obj</C>. <P/>
<C>fs</C> is a pointer to the first element of an array of <C>JSFunctionSpec</C>. Each array element defines a single function: its name, the native C call wrapped by the function, the number of arguments passed to the function, and its attribute flags. The last element of the array must contain zero values. <C>JS_DefineFunctions</C> creates one function for each non-zero element in the array.<P/>
<C>JS_DefineFunctions</C> always returns <C>JS_TRUE</C>, indicating it has created all functions specified in the array.<P/>
If it successfully creates properties for all the functions specified in the array, <C>JS_DefineFunctions</C> returns <C>JS_TRUE</C>. Otherwise it returns <C>JS_FALSE</C>.<P/>
</DESCRIPTION>
<NOTE>
To define only a single function for an object, call <C>JS_DefineFunction</C>.