[html5] r4343 - [e] (0) correct examples

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 27 01:00:33 PDT 2009


Author: ianh
Date: 2009-10-27 01:00:33 -0700 (Tue, 27 Oct 2009)
New Revision: 4343

Modified:
   complete.html
Log:
[e] (0) correct examples

Modified: complete.html
===================================================================
--- complete.html	2009-10-27 07:37:25 UTC (rev 4342)
+++ complete.html	2009-10-27 08:00:33 UTC (rev 4343)
@@ -63935,7 +63935,7 @@
 }
 
 // support being used as a shared worker as well as a dedicated worker
-if (this.onmessage) // dedicated worker
+if ('onmessage' in this) // dedicated worker
   onmessage = handleMessage;
 else // shared worker
   onconnect = function (e) { e.port.onmessage = handleMessage; }
@@ -64044,7 +64044,7 @@
 }
 
 // support being used as a shared worker as well as a dedicated worker
-if (this.onmessage) // dedicated worker
+if ('onmessage' in this) // dedicated worker
   onmessage = handleMessage;
 else // shared worker
   onconnect = function (e) { e.ports[0].onmessage = handleMessage };




More information about the Commit-Watchers mailing list