You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by be...@apache.org on 2008/08/30 07:25:46 UTC

svn commit: r690465 - /incubator/shindig/trunk/features/core.io/io.js

Author: beaton
Date: Fri Aug 29 22:25:46 2008
New Revision: 690465

URL: http://svn.apache.org/viewvc?rev=690465&view=rev
Log:
Switch from using 'x in y' to typeof x.y !== "undefined", per etnu's request

Modified:
    incubator/shindig/trunk/features/core.io/io.js

Modified: incubator/shindig/trunk/features/core.io/io.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core.io/io.js?rev=690465&r1=690464&r2=690465&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core.io/io.js (original)
+++ incubator/shindig/trunk/features/core.io/io.js Fri Aug 29 22:25:46 2008
@@ -299,13 +299,13 @@
 
       // Include owner information?
       var signOwner = true;
-      if ("OWNER_SIGNED" in params) {
+      if (typeof params.OWNER_SIGNED !== "undefined") {
         signOwner = params.OWNER_SIGNED;
       }
 
       // Include viewer information?
       var signViewer = true;
-      if ("VIEWER_SIGNED" in params) {
+      if (typeof params.VIEWER_SIGNED !== "undefined") {
         signViewer = params.VIEWER_SIGNED;
       }