Skip to content

Commit

Permalink
[giow] (2) Define 'this' for setTimeout functions
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11085

git-svn-id: http://svn.whatwg.org/webapps@5879 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 11, 2011
1 parent 76ee1ec commit dfce3bf
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
13 changes: 9 additions & 4 deletions complete.html
Expand Up @@ -65697,10 +65697,15 @@ <h3 id=timers><span class=secno>7.3 </span>Timers</h3>
<ol><li>

<p>If the first argument to the invoked method is an object that
has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared,
and if it has not, calls the aforementioned [[Call]] method with
as its arguments the third and subsequent arguments to the invoked
method (if any), and abort these steps.</p>
has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been
cleared, and if it has not, calls the aforementioned [[Call]]
method with as its arguments the third and subsequent arguments to
the invoked method (if any), and with an undefined <var title="">thisArg</var>, and abort these steps. <a href=#refsECMA262>[ECMA262]</a></p>

<p class=note>Setting <var title="">thisArg</var> to undefined
means that the function code will be executed with the <code title="">this</code> keyword bound to the <code><a href=#windowproxy>WindowProxy</a></code>
or the <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object, as if the code was
running in the global scope.</p>

<p>Otherwise, continue with the remaining steps.</p>

Expand Down
13 changes: 9 additions & 4 deletions index
Expand Up @@ -65700,10 +65700,15 @@ interface <dfn id=windowtimers>WindowTimers</dfn> {
<ol><li>

<p>If the first argument to the invoked method is an object that
has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared,
and if it has not, calls the aforementioned [[Call]] method with
as its arguments the third and subsequent arguments to the invoked
method (if any), and abort these steps.</p>
has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been
cleared, and if it has not, calls the aforementioned [[Call]]
method with as its arguments the third and subsequent arguments to
the invoked method (if any), and with an undefined <var title="">thisArg</var>, and abort these steps. <a href=#refsECMA262>[ECMA262]</a></p>

<p class=note>Setting <var title="">thisArg</var> to undefined
means that the function code will be executed with the <code title="">this</code> keyword bound to the <code><a href=#windowproxy>WindowProxy</a></code>
or the <code>WorkerGlobalScope</code> object, as if the code was
running in the global scope.</p>

<p>Otherwise, continue with the remaining steps.</p>

Expand Down
16 changes: 12 additions & 4 deletions source
Expand Up @@ -74797,10 +74797,18 @@ interface <dfn>WindowTimers</dfn> {
<p>If the first argument to the invoked method is an object that
has an internal [[Call]] method, then return a <span
title="concept-task">task</span> that checks if the entry for <var
title="">handle</var> in <var title="">list</var> has been cleared,
and if it has not, calls the aforementioned [[Call]] method with
as its arguments the third and subsequent arguments to the invoked
method (if any), and abort these steps.</p>
title="">handle</var> in <var title="">list</var> has been
cleared, and if it has not, calls the aforementioned [[Call]]
method with as its arguments the third and subsequent arguments to
the invoked method (if any), and with an undefined <var
title="">thisArg</var>, and abort these steps. <a
href="#refsECMA262">[ECMA262]</a></p>

<p class="note">Setting <var title="">thisArg</var> to undefined
means that the function code will be executed with the <code
title="">this</code> keyword bound to the <code>WindowProxy</code>
or the <code>WorkerGlobalScope</code> object, as if the code was
running in the global scope.</p>

<p>Otherwise, continue with the remaining steps.</p>

Expand Down

0 comments on commit dfce3bf

Please sign in to comment.