DependTree/Window.bjs
[app.Builder.js] / DependTree / Window.bjs
index 78072c4..bec7c5e 100644 (file)
@@ -72,7 +72,7 @@
                                                     "items": [
                                                         {
                                                             "listeners": {
-                                                                "toggled": "function (self, path) {\n    print(\"TOGGLE\");\n    // this.list\n\n\n     \n    var old = this.list.getValue(path, 1);\n   // print(JSON.stringify(old));\n    this.list.setValue(path, 1, !old)\n    \n    \n    \n    \n}"
+                                                                "toggled": "function (self, path) {\n    print(\"TOGGLE\");\n    // this.list\n\n\n     \n    var old = this.list.getValue(path, 1);\n   // print(JSON.stringify(old));\n    this.list.setValue(path, 1, old ? false : true)\n    \n    \n    \n    \n}"
                                                             },
                                                             "activatable": true,
                                                             "xtype": "CellRendererToggle",