From: Alan Knowles Date: Fri, 29 Oct 2010 10:13:20 +0000 (+0800) Subject: Sample/Editor.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=2f092caf5504784e468880e8eac3cc333d0825f2;p=app.Builder.js Sample/Editor.js --- diff --git a/Sample/Editor.js b/Sample/Editor.js index 4c71f7f1f..f0b3c65d7 100644 --- a/Sample/Editor.js +++ b/Sample/Editor.js @@ -114,7 +114,7 @@ Editor=new XObject({ iter.set_line(1); iter.set_line_offset(4); buf.move_mark(cursor, iter); - _this.dirty = false; + this.get('/Editor').dirty = false; this.el.grab_focus(); }, save : function() { @@ -131,7 +131,7 @@ Editor=new XObject({ this.checkSyntax(); print("EDITOR CHANGED"); - _this.dirty = true; + this.get('/Editor').dirty = true; // this.get('/LeftPanel.model').changed( str , false); }