Roo/View.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 05:34:16 +0000 (13:34 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 05:34:16 +0000 (13:34 +0800)
Roo/View.js

index 359fdcf..95e8bf5 100644 (file)
@@ -477,9 +477,17 @@ Roo.extend(Roo.View, Roo.util.Observable, {
         if(!node || !this.isSelected(node)){
             return; // not selected.
         }
+        // fireevent???
+        var ns = [];
+        Roo.each(this.selections, function(s) {
+            if (s === node ) {
+                return;
+            }
+            ns.push(s);
+        }
         
-        
-        
+        this.selections= ns;
+        this.fireEvent("selectionchange", this, this.selections);
     }
 
     /**