Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / ComboCheck.js
index a82a3fd..3797916 100644 (file)
@@ -87,7 +87,7 @@ Roo.extend(Roo.form.ComboCheck, Roo.form.ComboBox, {
         
     },
     select: function () {
-        Roo.log("SELECT CALLED");
+        //Roo.log("SELECT CALLED");
     },
      
     selectByValue : function(xv, scrollIntoView){
@@ -113,8 +113,8 @@ Roo.extend(Roo.form.ComboCheck, Roo.form.ComboBox, {
     onSelect : function(record, index){
        // Roo.log("onselect Called");
        // this is only called by the clear button now..
-       this.view.clearSelections();
-         setValue : function('[]');
+        this.view.clearSelections();
+        this.setValue('[]');
         if (this.value != this.valueBefore) {
             this.fireEvent('change', this, this.value, this.valueBefore);
         }
@@ -124,7 +124,10 @@ Roo.extend(Roo.form.ComboCheck, Roo.form.ComboBox, {
         var ar = [] ;
         
         try {
-            Roo.log(this.value);
+            //Roo.log(this.value);
+            if (typeof(this.value) == 'undefined') {
+                return [];
+            }
             var ar = Roo.decode(this.value);
             return  ar instanceof Array ? ar : []; //?? valid?