Sample/Window.bjs
[app.Builder.js] / Sample / Window.js
index fb94379..172a887 100644 (file)
@@ -1973,9 +1973,9 @@ 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;
+                                                                               return true;
                                                                                 // error Dialog
                                                                             }
                                                                             this.get('/Editor.view').save();