Sample/Editor.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:26:35 +0000 (11:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:26:35 +0000 (11:26 +0800)
Sample/Editor.bjs

index d2f223d..fa44fec 100644 (file)
@@ -8,7 +8,7 @@
         {
             "listeners": {
                 "destroy_event": "function (self, event) {\n    if (!this.save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.el.hide();\n    return true;\n}",
-                "delete_event": "function (self, event) {\n      this.el.hide();\n    return true;\n}",
+                "delete_event": "function (self, event) {\n    if (!this.save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.el.hide();\n    return true;\n}",
                 "configure_event": "function (self, object) {\n    this.pos = this.el.get_position();\n\n\n    return false;\n}",
                 "show": "function (self) {\n    if (this.pos) {\n        this.el.set_uposition(this.pos.root_x,this.pos.root_y);\n    }\n}"
             },