Skip to content
Browse files

Merging JSML

  • Loading branch information...
1 parent 02ca53b commit bed239574b501453ee0f22330c71562aff44ce0b @jeffsu committed Apr 2, 2011
View
6 CHANGELOG
@@ -1,5 +1,11 @@
+<<<<<<< Updated upstream
0.3.13
* fixed problem that doesn't allow toString methods
+=======
+0.3.12
+ * fixed parse error in JSMLElement
+ * Yanking 0.3.11
+>>>>>>> Stashed changes
0.3.11
* fixed minor issue finding Rails.root in rack
View
2 VERSION
@@ -1 +1 @@
-0.3.11
+0.3.12
View
11 dist/browser/js2-full.js
@@ -18,7 +18,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -844,7 +844,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1120,7 +1119,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;
@@ -1230,7 +1228,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;
@@ -1276,7 +1273,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",{
@@ -1348,7 +1344,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" +
@@ -1435,7 +1430,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1480,7 +1474,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);
@@ -1566,10 +1559,8 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
(function (undefined, JS2) {
JS2.require = function(file, callback) {
var xmlhttp;
View
3 dist/browser/js2.js
@@ -19,7 +19,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -270,7 +270,6 @@ JS2.Array.prototype.any = function() {
};
-
js2.ROOT = root;
return JS2;
View
6 dist/gem/CHANGELOG
@@ -1,5 +1,11 @@
+<<<<<<< Updated upstream
0.3.13
* fixed problem that doesn't allow toString methods
+=======
+0.3.12
+ * fixed parse error in JSMLElement
+ * Yanking 0.3.11
+>>>>>>> Stashed changes
0.3.11
* fixed minor issue finding Rails.root in rack
View
2 dist/gem/js2.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'js2'
- s.version = '0.3.11'
+ s.version = '0.3.12'
s.summary = "Javascript Syntactic Sugar"
s.description = %{A superset of the Javascript language to make development easier.}
s.files = Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['lib/**/*.js'] + [ 'CHANGELOG' ]
View
11 dist/gem/lib/js2/js2.js
@@ -14,7 +14,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -840,7 +840,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1116,7 +1115,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;
@@ -1226,7 +1224,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;
@@ -1272,7 +1269,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",{
@@ -1344,7 +1340,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" +
@@ -1431,7 +1426,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1476,7 +1470,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);
@@ -1562,11 +1555,9 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
JS2.fs = new JS2.FileSystem(JS2_RUBY_FILE_ADAPTER);
js2.DECORATOR = new JS2.BrowserDecorator();
js2.ROOT = root;
View
6 dist/npm/CHANGELOG
@@ -1,5 +1,11 @@
+<<<<<<< Updated upstream
0.3.13
* fixed problem that doesn't allow toString methods
+=======
+0.3.12
+ * fixed parse error in JSMLElement
+ * Yanking 0.3.11
+>>>>>>> Stashed changes
0.3.11
* fixed minor issue finding Rails.root in rack
View
12 dist/npm/lib/js2.js
@@ -14,7 +14,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -840,7 +840,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1116,7 +1115,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;
@@ -1226,7 +1224,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;
@@ -1272,7 +1269,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",{
@@ -1344,7 +1340,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" +
@@ -1431,7 +1426,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1476,7 +1470,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);
@@ -1562,11 +1555,9 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
JS2.Class.extend('NodeFileAdapter', function(KLASS, OO){
OO.addMember("initialize",function () {
this.fs = require('fs');
@@ -1618,7 +1609,6 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
-
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
View
2 dist/npm/package.json
@@ -1,6 +1,6 @@
{ "name" : "js2",
"description" : "Javascript Syntactic Sugar",
- "version" : "0.3.11",
+ "version" : "0.3.12",
"author" : "Jeff Su",
"repository" : { "type" : "git" , "url" : "git://github.com/jeffsu/js2.git" },
"bugs" : { "web" : "http://github.com/jeffsu/js2/issues" },
View
11 flavors/browser-full.js
@@ -18,7 +18,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -844,7 +844,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1120,7 +1119,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;
@@ -1230,7 +1228,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;
@@ -1276,7 +1273,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",{
@@ -1348,7 +1344,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" +
@@ -1435,7 +1430,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1480,7 +1474,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);
@@ -1566,10 +1559,8 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
(function (undefined, JS2) {
JS2.require = function(file, callback) {
var xmlhttp;
View
3 flavors/browser.js
@@ -19,7 +19,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -270,7 +270,6 @@ JS2.Array.prototype.any = function() {
};
-
js2.ROOT = root;
return JS2;
View
2 flavors/js2.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'js2'
- s.version = '0.3.11'
+ s.version = '0.3.12'
s.summary = "Javascript Syntactic Sugar"
s.description = %{A superset of the Javascript language to make development easier.}
s.files = Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['lib/**/*.js'] + [ 'CHANGELOG' ]
View
12 flavors/node.js
@@ -14,7 +14,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -840,7 +840,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1116,7 +1115,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;
@@ -1226,7 +1224,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;
@@ -1272,7 +1269,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",{
@@ -1344,7 +1340,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" +
@@ -1431,7 +1426,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1476,7 +1470,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);
@@ -1562,11 +1555,9 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
JS2.Class.extend('NodeFileAdapter', function(KLASS, OO){
OO.addMember("initialize",function () {
this.fs = require('fs');
@@ -1618,7 +1609,6 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
-
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
View
2 flavors/node.package.json
@@ -1,6 +1,6 @@
{ "name" : "js2",
"description" : "Javascript Syntactic Sugar",
- "version" : "0.3.11",
+ "version" : "0.3.12",
"author" : "Jeff Su",
"repository" : { "type" : "git" , "url" : "git://github.com/jeffsu/js2.git" },
"bugs" : { "web" : "http://github.com/jeffsu/js2/issues" },
View
12 flavors/ringo-full.js
@@ -16,7 +16,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -842,7 +842,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1118,7 +1117,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;
@@ -1228,7 +1226,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;
@@ -1274,7 +1271,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",{
@@ -1346,7 +1342,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" +
@@ -1433,7 +1428,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1478,7 +1472,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);
@@ -1564,11 +1557,9 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
JS2.Class.extend('RingoFileAdapter', function(KLASS, OO){
OO.addMember("initialize",function () {
this.fs = require('fs');
@@ -1621,7 +1612,6 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
-
JS2.fs = new FileSystem(new RingoFileAdapter());
JS2.DECORATOR = new JS2.RingoDecorator();
View
3 flavors/ringo.js
@@ -18,7 +18,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
js2.ROOT = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
// CLASS HELPERS
@@ -267,7 +267,6 @@ JS2.Array.prototype.any = function() {
};
-
js2.ROOT = root;
return js2;
})(this);
View
2 flavors/ringo.package.json
@@ -1,6 +1,6 @@
{
"name": "js2-ringo",
- "version": "0.3.11",
+ "version": "0.3.12",
"description": "Javascript Syntactic Sugar",
"keywords": ["rhino", "ringo", "js2", "object oriented programming" ],
"author": "Jeff Su (http://jeffsu.com/) <me@jeffsu.com>",
View
11 flavors/ruby.js
@@ -14,7 +14,7 @@ function mainFunction (arg) {
var JS2 = root.JS2 = mainFunction;
var js2 = root.js2 = JS2;
- js2.VERSION = "0.3.11";
+ js2.VERSION = "0.3.12";
JS2.ROOT = JS2;
@@ -840,7 +840,6 @@ function mainFunction (arg) {
},
toString: function () {
- console.log((new Validator(this.content)).getString());
var v = this.validate(/^(function)(\s+)(I)(\s*)(Braces)(\s*)(Block)/);
return 'OO.addMember("' + v[3] + '",' + "function" + v[2] + v[5] + ' ' + v[7] + ');';
}
@@ -1116,7 +1115,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;
@@ -1226,7 +1224,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;
@@ -1272,7 +1269,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",{
@@ -1344,7 +1340,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" +
@@ -1431,7 +1426,6 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
-
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1476,7 +1470,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);
@@ -1562,11 +1555,9 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return '';
});
});
-
});
-
JS2.fs = new JS2.FileSystem(JS2_RUBY_FILE_ADAPTER);
js2.DECORATOR = new JS2.BrowserDecorator();
js2.ROOT = root;
View
5 src/Common/JSML.js2
@@ -66,7 +66,7 @@ class JSMLElement {
function parse(line) {
var self = this;
- line = line.replace(this.TOKEN_REGEX, #(match, type, name) {
+ line = line.replace(this.TOKEN_REGEX, #(match, type, name){
switch(type) {
case '%': this.nodeType = name; break;
case '#': this.classes.push(name); break;
@@ -75,13 +75,12 @@ class JSMLElement {
return '';
});
- line = line.replace(this.JS_OUT_REGEX, #(match, type, content) {
+ line = line.replace(this.JS_OUT_REGEX, #(match, type, content){
switch(type) {
case '=': this.jsEQ = content; break;
case '-': this.jsExec = content; break;
}
return '';
});
}
-
}

0 comments on commit bed2395

Please sign in to comment.
Something went wrong with that request. Please try again.