carto
Version:
Mapnik Stylesheet Compiler
19 lines (15 loc) • 336 B
JavaScript
(function(tree) {
tree.URL = function URL(val, paths) {
this.value = val;
this.paths = paths;
};
tree.URL.prototype = {
is: 'uri',
toString: function() {
return this.value.toString();
},
ev: function(ctx) {
return new tree.URL(this.value.ev(ctx), this.paths);
}
};
})(require('../tree'));