Author: zhen
Date: Fri May 23 12:16:24 2008
New Revision: 659632

URL: http://svn.apache.org/viewvc?rev=659632&view=rev
Log:
Fixed a bug in Prefs.prototype.setArray that didn't accept empty arrays.


Modified:
    incubator/shindig/trunk/features/setprefs/setprefs.js

Modified: incubator/shindig/trunk/features/setprefs/setprefs.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/setprefs/setprefs.js?rev=659632&r1=659631&r2=659632&view=diff
==============================================================================
--- incubator/shindig/trunk/features/setprefs/setprefs.js (original)
+++ incubator/shindig/trunk/features/setprefs/setprefs.js Fri May 23 12:16:24 
2008
@@ -58,10 +58,6 @@
  * @private This feature is documented in prefs.js
  */
 gadgets.Prefs.prototype.setArray = function(key, val) {
-  if (!val.length || !val.join) {
-    throw new Error("Value is not an array.");
-  }
-
   // We must escape pipe (|) characters to ensure that decoding in
   // getArray actually works properly.
   for (var i = 0, j = val.length; i < j; ++i) {


Reply via email to