W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2011

hixie: Define 'this' for setTimeout functions (whatwg r5879)

From: poot <cvsmail@w3.org>
Date: Fri, 11 Feb 2011 18:52:21 -0500
To: public-html-diffs@w3.org
Message-Id: <E1Po2mj-0004YI-3h@jay.w3.org>
hixie: Define 'this' for setTimeout functions (whatwg r5879)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4720&r2=1.4721&f=h
http://html5.org/tools/web-apps-tracker?from=5878&to=5879

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4720
retrieving revision 1.4721
diff -u -d -r1.4720 -r1.4721
--- Overview.html	11 Feb 2011 23:26:53 -0000	1.4720
+++ Overview.html	11 Feb 2011 23:50:36 -0000	1.4721
@@ -49274,10 +49274,15 @@
   <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>
Received on Friday, 11 February 2011 23:52:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 11 February 2011 23:52:24 GMT