Sample/Window.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:06:23 +0000 (17:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:06:23 +0000 (17:06 +0800)
Sample/Window.bjs

index ad37d08..93cfe16 100644 (file)
                                                                                         {
                                                                                             "listeners": {
                                                                                                 "state_changed": "function (self, state) {\n    this.setText(state ? \"Auto Redraw OFF\" : \"Auto Redraw On\");\n}",
-                                                                                                "toggled": "function (self) {\n\n}"
+                                                                                                "toggled": "function (self, state) {\n    this.el.setText(this.el.activestate ? \"Auto Redraw OFF\" : \"Auto Redraw On\");\n}"
                                                                                             },
                                                                                             "active": true,
                                                                                             "label": "Auto Redraw On",