Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 02:37:39 +0000 (10:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 02:37:39 +0000 (10:37 +0800)
Sample/Window.js

index fb94379..1be744b 100644 (file)
@@ -1973,7 +1973,7 @@ Window=new XObject({
                                                                      //   this.activePath = false;
                                                                        // stop editing!!!!
                                                                         if (this.get('/Editor').dirty) {
-                                                                            if (!this.get('/Editor.view').checkSyntax()) {
+                                                                            if (!this.get('/Editor.buffer').checkSyntax()) {
                                                                                this.get('/StandardErrorDialog').show("Fix errors in code and save.."); 
                                                                                return;
                                                                                 // error Dialog