carto/lib/less/tree/url.js
2010-07-04 10:45:55 +02:00

17 lines
305 B
JavaScript

(function (tree) {
tree.URL = function (val) {
this.value = val;
};
tree.URL.prototype = {
toCSS: function () {
return "url(" + this.value.toCSS() + ")";
},
eval: function (ctx) {
this.value = this.value.eval(ctx);
return this;
}
};
})(require('less/tree'));