1,273
edits
Dandonkulous (talk | contribs) |
Dandonkulous (talk | contribs) |
||
Line 40: | Line 40: | ||
#<b>options</b> - (<i>object</i>) | #<b>options</b> - (<i>object</i>) | ||
#* | #* bind: (<i>mixed</i>) a variable that will be bound as the 'this' keyword in the function | ||
#* | #* arguments: (<i>array > mixed</i>) an array of mixed variables passed as the function arguments | ||
#* | #* timeout: (<i>number</i>) a number that is used to set the timeout duration | ||
#* | #* interval: (<i>number</i>) a number that is used to set the interval duration | ||
#<b> | #<b>action</b> - (<i>function</i>) a function to be executed within the DOM of the Background Page - by default, the Background Page's window object is the bound 'this' within the function | ||
<b>Returns:</b> | <b>Returns:</b> | ||
The | <b>user defined return value</b> - The function's return value as specified by the user | ||
or | |||
<i>If timeout or interval options are used:</i> | |||
<b>array</b> - an array whose first item is the function's user defined return value, and second is a variable the user can save to clear the timing event | |||
<b>Notes:</b> | <b>Notes:</b> | ||
<b>Examples:</b> | <b>Examples:</b> |
edits