You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/09/11 20:53:58 UTC

svn commit: r694419 - in /incubator/shindig/trunk/javascript/container: cookies.js gadgets.js

Author: chabotc
Date: Thu Sep 11 11:53:57 2008
New Revision: 694419

URL: http://svn.apache.org/viewvc?rev=694419&view=rev
Log:
SHINDIG-590 by Guido Barosio - javascript operators correction

Modified:
    incubator/shindig/trunk/javascript/container/cookies.js
    incubator/shindig/trunk/javascript/container/gadgets.js

Modified: incubator/shindig/trunk/javascript/container/cookies.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/cookies.js?rev=694419&r1=694418&r2=694419&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/cookies.js (original)
+++ incubator/shindig/trunk/javascript/container/cookies.js Thu Sep 11 11:53:57 2008
@@ -84,7 +84,7 @@
   // Case 2: Expire the cookie.
   // Note: We don't tell people about this option in the function doc because
   // we prefer people to use ExpireCookie() to expire cookies.
-  } else if (opt_maxAge == 0) {
+  } else if (opt_maxAge === 0) {
     // Note: Don't use Jan 1, 1970 for date because NS 4.76 will try to convert
     // it to local time, and if the local time is before Jan 1, 1970, then the
     // browser will ignore the Expires attribute altogether.

Modified: incubator/shindig/trunk/javascript/container/gadgets.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/gadgets.js?rev=694419&r1=694418&r2=694419&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/gadgets.js (original)
+++ incubator/shindig/trunk/javascript/container/gadgets.js Thu Sep 11 11:53:57 2008
@@ -61,7 +61,7 @@
     var wrapper = function(index) {
       functions[index].call(opt_this, function(result) {
         results[index] = result;
-        if (--pending == 0) {
+        if (--pending === 0) {
           continuation(results);
         }
       });