Permalink
Browse files

incremental

  • Loading branch information...
jeffsu committed Apr 1, 2011
1 parent ba061ab commit 609e77212a6ba1e5451a0560b5255d60dcb06f8b
View
@@ -1128,7 +1128,6 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
-
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1238,7 +1237,6 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
-
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1284,7 +1282,6 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
-
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1356,7 +1353,6 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
-
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1443,7 +1439,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1488,7 +1483,6 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
-
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1607,12 +1601,20 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
if (this.nodeType) {
out.unshift("<"+(this.nodeType)+">");
out.push("</"+(this.nodeType)+">");
+ }
+
+ if (this.jsExec) {
+ out.unshift(this.jsExec);
+
+ if (this.jsExec.match(/\{\s*$/)) {
+ out.push('}');
+ }
}
+
return out;
});
});
-
JS2.TEMPLATES = { jsml: JS2.JSML };
(function (undefined, JS2) {
View
@@ -270,7 +270,6 @@ JS2.Array.prototype.any = function() {
};
-
js2.ROOT = root;
return JS2;
View
@@ -1124,7 +1124,6 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
-
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1234,7 +1233,6 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
-
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1280,7 +1278,6 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
-
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1352,7 +1349,6 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
-
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1439,7 +1435,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1484,7 +1479,6 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
-
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1603,12 +1597,20 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
if (this.nodeType) {
out.unshift("<"+(this.nodeType)+">");
out.push("</"+(this.nodeType)+">");
+ }
+
+ if (this.jsExec) {
+ out.unshift(this.jsExec);
+
+ if (this.jsExec.match(/\{\s*$/)) {
+ out.push('}');
+ }
}
+
return out;
});
});
-
JS2.TEMPLATES = { jsml: JS2.JSML };
View
@@ -1124,7 +1124,6 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
-
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1234,7 +1233,6 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
-
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1280,7 +1278,6 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
-
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1352,7 +1349,6 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
-
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1439,7 +1435,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1484,7 +1479,6 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
-
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1603,12 +1597,20 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
if (this.nodeType) {
out.unshift("<"+(this.nodeType)+">");
out.push("</"+(this.nodeType)+">");
+ }
+
+ if (this.jsExec) {
+ out.unshift(this.jsExec);
+
+ if (this.jsExec.match(/\{\s*$/)) {
+ out.push('}');
+ }
}
+
return out;
});
});
-
JS2.TEMPLATES = { jsml: JS2.JSML };
@@ -1663,7 +1665,6 @@ JS2.TEMPLATES = { jsml: JS2.JSML };
});
});
-
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
View
@@ -1128,7 +1128,6 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
-
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1238,7 +1237,6 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
-
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1284,7 +1282,6 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
-
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1356,7 +1353,6 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
-
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1443,7 +1439,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1488,7 +1483,6 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
-
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1607,12 +1601,20 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
if (this.nodeType) {
out.unshift("<"+(this.nodeType)+">");
out.push("</"+(this.nodeType)+">");
+ }
+
+ if (this.jsExec) {
+ out.unshift(this.jsExec);
+
+ if (this.jsExec.match(/\{\s*$/)) {
+ out.push('}');
+ }
}
+
return out;
});
});
-
JS2.TEMPLATES = { jsml: JS2.JSML };
(function (undefined, JS2) {
View
@@ -270,7 +270,6 @@ JS2.Array.prototype.any = function() {
};
-
js2.ROOT = root;
return JS2;
View
@@ -1124,7 +1124,6 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
-
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1234,7 +1233,6 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
-
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1280,7 +1278,6 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
-
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1352,7 +1349,6 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
-
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1439,7 +1435,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1484,7 +1479,6 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
-
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1603,12 +1597,20 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
if (this.nodeType) {
out.unshift("<"+(this.nodeType)+">");
out.push("</"+(this.nodeType)+">");
+ }
+
+ if (this.jsExec) {
+ out.unshift(this.jsExec);
+
+ if (this.jsExec.match(/\{\s*$/)) {
+ out.push('}');
+ }
}
+
return out;
});
});
-
JS2.TEMPLATES = { jsml: JS2.JSML };
@@ -1663,7 +1665,6 @@ JS2.TEMPLATES = { jsml: JS2.JSML };
});
});
-
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
Oops, something went wrong.

0 comments on commit 609e772

Please sign in to comment.