projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8c8829
)
Sample/Editor.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 06:11:36 +0000
(14:11 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 06:11:36 +0000
(14:11 +0800)
Sample/Editor.js
patch
|
blob
|
history
diff --git
a/Sample/Editor.js
b/Sample/Editor.js
index
d37ff26
..
8c741ee
100644
(file)
--- a/
Sample/Editor.js
+++ b/
Sample/Editor.js
@@
-18,6
+18,7
@@
Editor=new XObject({
// no hiding with errors.
return true;
}
// no hiding with errors.
return true;
}
+ this.get('/Editor').activePath = false;
this.el.hide();
return true;
},
this.el.hide();
return true;
},
@@
-27,6
+28,7
@@
Editor=new XObject({
return true;
}
this.el.hide();
return true;
}
this.el.hide();
+ this.get('/Editor').activePath = false;
return true;
},
configure_event : function (self, object) {
return true;
},
configure_event : function (self, object) {
@@
-76,6
+78,11
@@
Editor=new XObject({
id : "RightEditor",
pack : "add",
save : function() {
id : "RightEditor",
pack : "add",
save : function() {
+ // make sure we have an active path..
+ if (!this.get('/Editor').activePath) {
+ return true;
+ }
+
var str = this.get('/Editor.buffer').toString();
if (!this.get('/Editor.buffer').checkSyntax()) {
this.get('/StandardErrorDialog').show("Fix errors in code and save..");
var str = this.get('/Editor.buffer').toString();
if (!this.get('/Editor.buffer').checkSyntax()) {
this.get('/StandardErrorDialog').show("Fix errors in code and save..");