X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Sample%2FEditor.bjs;h=c8c3d7fff2c018587aca24a6319c42f98660984b;hb=b3d4ddb275e213c768d3bb38aec63ec3ae4cb84c;hp=8d8887c9d0d681aca3daa91ad934db2af19efa5a;hpb=186c16ec726bddd70f1c0085d16eda325a249e14;p=app.Builder.js diff --git a/Sample/Editor.bjs b/Sample/Editor.bjs index 8d8887c9d..c8c3d7fff 100644 --- a/Sample/Editor.bjs +++ b/Sample/Editor.bjs @@ -7,7 +7,7 @@ "items": [ { "listeners": { - "destroy_event": "function (self, event) {\n if (!this.getsave()) {\n // no hiding with errors.\n return true;\n }\n this.el.hide();\n return true;\n}", + "destroy_event": "function (self, event) {\n if (!this.get('/Editor.RightEditor').save()) {\n // no hiding with errors.\n return true;\n }\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}"