Sample/Editor.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 10:13:20 +0000 (18:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 10:13:20 +0000 (18:13 +0800)
Sample/Editor.js

index 4c71f7f..f0b3c65 100644 (file)
@@ -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);
                                         
                                         }