DependTree/Window.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 10:56:51 +0000 (18:56 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 10:56:51 +0000 (18:56 +0800)
DependTree/Window.js

index 4db53ad..e636bb4 100644 (file)
@@ -101,6 +101,17 @@ Window=new XObject({
                                                     listeners : {
                                                         toggled : function (self, path) {
                                                             print("TOGGLE");
+                                                            // this.list
+                                                        
+                                                            var list = this.get('class-list-store');
+                                                             
+                                                            var old = list.getValue(path, 1);
+                                                            print(JSON.stringify(old));
+                                                        //    list.setValue(path, 1, !old)
+                                                            
+                                                            
+                                                            
+                                                            
                                                         }
                                                     },
                                                     activatable : true