You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by et...@apache.org on 2008/02/21 06:51:55 UTC

svn commit: r629696 - /incubator/shindig/trunk/features/core/config.js

Author: etnu
Date: Wed Feb 20 21:51:49 2008
New Revision: 629696

URL: http://svn.apache.org/viewvc?rev=629696&view=rev
Log:
Fixed BooleanValidator to actually validate that the data was a boolean rather than validating that it was true.


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

Modified: incubator/shindig/trunk/features/core/config.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core/config.js?rev=629696&r1=629695&r2=629696&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core/config.js (original)
+++ incubator/shindig/trunk/features/core/config.js Wed Feb 20 21:51:49 2008
@@ -190,7 +190,7 @@
      * Validates that the value is a boolean.
      */
     BooleanValidator: function(data) {
-      return !!data;
+      return typeof data === "boolean";
     },
 
     /**
@@ -222,4 +222,4 @@
       };
     }
   };
-}();
\ No newline at end of file
+}();