carto/lib/mess/tree/quoted.js

18 lines
343 B
JavaScript
Raw Normal View History

(function (tree) {
tree.Quoted = function (str, content) {
this.value = content || '';
this.quote = str.charAt(0);
this.is = 'string';
};
tree.Quoted.prototype = {
2010-02-26 06:55:26 +08:00
toCSS: function () {
return this.quote + this.value + this.quote;
2010-02-26 06:55:26 +08:00
},
eval: function () {
return this;
}
2010-02-24 02:39:05 +08:00
};
2011-01-06 03:23:28 +08:00
})(require('mess/tree'));