From: Alan Knowles Date: Mon, 1 Nov 2010 03:27:35 +0000 (+0800) Subject: Sample/Editor.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=c7a1b5cf81da1cdd2a604474d9c5e7065689a1c5 Sample/Editor.js --- diff --git a/Sample/Editor.js b/Sample/Editor.js index cfbd52440..d37ff26e3 100644 --- a/Sample/Editor.js +++ b/Sample/Editor.js @@ -14,7 +14,7 @@ Editor=new XObject({ xtype: Gtk.Window, listeners : { destroy_event : function (self, event) { - if (!this.save()) { + if (!this.get('/Editor.RightEditor').save()) { // no hiding with errors. return true; } @@ -22,7 +22,7 @@ Editor=new XObject({ return true; }, delete_event : function (self, event) { - if (!this.save()) { + if (!this.get('/Editor.RightEditor').save()) { // no hiding with errors. return true; }