Changeset 14696 for trunk/FACT++/scripts/doc/dim.js
- Timestamp:
- 11/25/12 13:35:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/doc/dim.js
r14678 r14696 13 13 */ 14 14 var dim = { }; 15 16 /**17 * Sleep for a while. This can be used to just wait or give time18 * back to the operating system to produce less CPU load if the19 * main purpose of a loop is, e.g., to wait for something to happen.20 *21 * @param {Integer} [milliseconds=0]22 * Number of millliseconds to sleep. Note that even 0 will always23 * sleep at least one millisecond.24 *25 */26 dim.sleep = function() { /* [native code] */ }27 15 28 16 /** … … 67 55 * @example 68 56 * dim.alarm("Alarm for 30 seconds!"); 69 * dim.sleep(30000);57 * v8.sleep(30000); 70 58 * dim.alarm(); 71 59 */ 72 60 dim.alarm = function() { /* [native code] */ } 73 74 /**75 *76 * Displays a message on the local console (only).77 *78 * @param argument79 * Any kind of argument can be given. If it is not a String, it80 * is converted using the toString() member function.81 *82 * @param [. . .]83 * Any number of additional arguments. Each argument will appear in84 * a new line.85 *86 * @example87 * dim.out("Five="+5, "--- new line ---");88 *89 */90 dim.out = function() { /* [native code] */ }91 61 92 62 /** … … 187 157 * 188 158 * @example 189 * dim.onchange['*'] = function(state) { dim.out("State change from "+state.name+" received"); }190 * dim.onchange['DIM_CONTROL'] = function(state) { dim.out(JSON.stringify(state); }159 * dim.onchange['*'] = function(state) { console.out("State change from "+state.name+" received"); } 160 * dim.onchange['DIM_CONTROL'] = function(state) { console.out(JSON.stringify(state); } 191 161 * ... 192 162 * delete dim.onchange['DIM_CONTROL']; // to remove the callback … … 194 164 */ 195 165 dim.onchange = []; 166 167 /** 168 * DIM version number 169 * 170 * @constant 171 * @type Integer 172 */ 173 dim.version = 0;
Note:
See TracChangeset
for help on using the changeset viewer.