X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Sample%2FEditor.bjs;h=fa44fec868e93fd645d86dae91fa44615925c794;hb=235188bb50cdd915e3d5405c393fb9403324016d;hp=d2f223d7771e5e930210cf4fa979419cf066ed8c;hpb=326356ded31d5b78221b8981e036c174b9181d7c;p=app.Builder.js diff --git a/Sample/Editor.bjs b/Sample/Editor.bjs index d2f223d77..fa44fec86 100644 --- a/Sample/Editor.bjs +++ b/Sample/Editor.bjs @@ -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}" },