Ignore:
Timestamp:
05/24/13 13:36:21 (11 years ago)
Author:
tbretz
Message:
Added a user supplied 'this' argument to v8.timeout and the Thread class.
Location:
trunk/FACT++/scripts/doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/doc/Thread.js

    r16053 r16102  
    3535 *    A function which is executed aftr the initial timeout.
    3636 *
     37 * @param {Object} [_this]
     38 *    An object which will be the reference for 'this' in the function call.
     39 *    If none is given, the function itself will be the 'this' object.
     40 *
    3741 * @throws
    3842 *    <li> If number or type of arguments is wrong
     
    4347 *    handle.kill();
    4448 */
    45 function Thread(timeout, function)
     49function Thread(timeout, function, _this)
    4650{
    4751    /**
  • trunk/FACT++/scripts/doc/v8.js

    r15074 r16102  
    3131 * main purpose of a loop is, e.g., to wait for something to happen.
    3232 *
    33  * @param {Integer} [milliseconds]
     33 * @param {Integer} milliseconds
    3434 *     Number of millliseconds until the timeout. Note that even 0
    3535 *     will execute the function at least once. If the timeout
     
    3737 *     be returned in case of a timeout.
    3838 *
    39  * @param {Function} [func]
     39 * @param {Function} func
    4040 *     A function. The function defines when the conditional to end
    4141 *     the timeout will be fullfilled. As soon as the function returns
     
    4343 *     timeout is stopped and its return value is returned.
    4444 *
     45 * @param {Object} [_this]
     46 *    An object which will be the reference for 'this' in the function call.
     47 *    If none is given, the function itself will be the 'this' object.
     48 *
    4549 * @param [. . .]
    46  *     Any further argument will be passed to the function.
     50 *     Any further argument will be passed as argument to the function.
    4751 *
    4852 * @returns
Note: See TracChangeset for help on using the changeset viewer.