diff --git a/src/sbbs3/js_console.cpp b/src/sbbs3/js_console.cpp index 83c8fff334b07248717f428c78a9b86cf9e8221b..c53a5db77cab0566125d7c923b8ad06059fafc9e 100644 --- a/src/sbbs3/js_console.cpp +++ b/src/sbbs3/js_console.cpp @@ -2513,19 +2513,19 @@ static jsSyncMethodSpec js_console_functions[] = { }, {"on", js_on, 2, JSTYPE_NUMBER, JSDOCSTR("type, callback") ,JSDOCSTR("calls callback whenever the condition type specifies is possible. Currently, only 'read' is supported for type. Returns an id suitable for use with clearOn") - ,31802 + ,31900 }, {"once", js_once, 2, JSTYPE_NUMBER, JSDOCSTR("type, callback") ,JSDOCSTR("calls callback the first time the condition type specifies is possible. Currently, only 'read' is supported for type. Returns an id suitable for use with clearOnce") - ,31802 + ,31900 }, {"clearOn", js_clearOn, 2, JSTYPE_VOID, JSDOCSTR("type, id") ,JSDOCSTR("removes a callback installed by on") - ,31802 + ,31900 }, {"clearOnce", js_clearOnce, 2, JSTYPE_VOID, JSDOCSTR("type, id") ,JSDOCSTR("removes a callback installed by once") - ,31802 + ,31900 }, {0} }; diff --git a/src/sbbs3/js_internal.c b/src/sbbs3/js_internal.c index 9dc3436c7a62ad2c896e9fc9c80c02d3df47fc39..3581220987891c4c571d7de0e6545b765814fb8b 100644 --- a/src/sbbs3/js_internal.c +++ b/src/sbbs3/js_internal.c @@ -199,7 +199,7 @@ static jsSyncPropertySpec js_properties[] = { #endif { "global", PROP_GLOBAL, PROP_FLAGS, 314 }, { "options", PROP_OPTIONS, PROP_FLAGS, 31802 }, - { "do_callbacks", PROP_KEEPGOING, JSPROP_ENUMERATE, 31802 }, + { "do_callbacks", PROP_KEEPGOING, JSPROP_ENUMERATE, 31900 }, {0} }; @@ -1457,32 +1457,32 @@ static jsSyncMethodSpec js_functions[] = { {"setTimeout", js_setTimeout, 2, JSTYPE_NUMBER, JSDOCSTR("callback, time[, thisObj]") ,JSDOCSTR("install a timeout. callback() will be called time ms after the function is called. " "returns an id which can be passed to clearTimeout()") - ,31802 + ,31900 }, {"setInterval", js_setInterval, 2, JSTYPE_OBJECT, JSDOCSTR("callback, period[, thisObj]") ,JSDOCSTR("install a timeout. callback() will be called every period ms after setInterval() is called." "returns and id which can be passed to clearIntervat()") - ,31802 + ,31900 }, {"clearTimeout", js_clearTimeout, 1, JSTYPE_VOID, JSDOCSTR("id") ,JSDOCSTR("remove a timeout") - ,31802 + ,31900 }, {"clearInterval", js_clearInterval, 1, JSTYPE_VOID, JSDOCSTR("id") ,JSDOCSTR("remove an interval") - ,31802 + ,31900 }, {"addEventListener", js_addEventListener, 2, JSTYPE_NUMBER, JSDOCSTR("eventName, callback") ,JSDOCSTR("Add a listener that is ran after js.dispatchEvent(eventName) is called. Returns an id to be passed to js.removeEventListener") - ,31802 + ,31900 }, {"removeEventListener", js_removeEventListener, 1, JSTYPE_VOID, JSDOCSTR("id") ,JSDOCSTR("Remove listeners added with js.addEventListener(). id can be a string or an id returned by addEventListener. This does not remove already triggered callbacks from the runqueue.") - ,31802 + ,31900 }, {"dispatchEvent", js_dispatchEvent, 1, JSTYPE_VOID, JSDOCSTR("eventName [, thisObj]") ,JSDOCSTR("Add all listeners of eventName to the end of the runqueue. If obj is passed, specifies this in the callback (the js object is used otherwise).") - ,31802 + ,31900 }, {"setImmediate", js_setImmediate, 1, JSTYPE_VOID, JSDOCSTR("callback[, thisObj]") ,JSDOCSTR("adds the callback to the end of the run queue, where it will be called after all pending events are processed") diff --git a/src/sbbs3/js_socket.c b/src/sbbs3/js_socket.c index ad30e32f79a82ed4592ce845a4a7e31a8960dbda..ae9969cfd83e3576900127d7f15ef908ee524bb0 100644 --- a/src/sbbs3/js_socket.c +++ b/src/sbbs3/js_socket.c @@ -2685,19 +2685,19 @@ static jsSyncMethodSpec js_socket_functions[] = { }, {"on", js_on, 2, JSTYPE_NUMBER, JSDOCSTR("('read' | 'write'), callback") ,JSDOCSTR("execute callback whenever socket is readable/writable. Returns an id to be passed to js.clearOn()") - ,31802 + ,31900 }, {"once", js_once, 2, JSTYPE_NUMBER, JSDOCSTR("('read' | 'write'), callback") ,JSDOCSTR("execute callback next time socket is readable/writable Returns and id to be passed to js.clearOnce()") - ,31802 + ,31900 }, {"clearOn", js_clearOn, 2, JSTYPE_NUMBER, JSDOCSTR("('read' | 'write'), id") ,JSDOCSTR("remove callback installed by Socket.on()") - ,31802 + ,31900 }, {"clearOnce", js_clearOnce, 2, JSTYPE_NUMBER, JSDOCSTR("('read' | 'write'), id") ,JSDOCSTR("remove callback installed by Socket.once()") - ,31802 + ,31900 }, {0} };