From: Alan Knowles Date: Mon, 1 Nov 2010 03:15:35 +0000 (+0800) Subject: Sample/Editor.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=bb15cc8954617e403dd3d9adfa8e85dee31ab40b Sample/Editor.bjs --- diff --git a/Sample/Editor.bjs b/Sample/Editor.bjs index 1a0412063..72ea5c08d 100644 --- a/Sample/Editor.bjs +++ b/Sample/Editor.bjs @@ -7,7 +7,7 @@ "items": [ { "listeners": { - "destroy_event": "function (self, event) {\n if (!this.get('/Editor.buffer').checkSyntax) {\n return true;\n }\n this.el.hide();\n return true;\n}", + "destroy_event": "function (self, event) {\n if (!this.get('/Editor.buffer').checkSyntax) {\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}", "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}"