11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
if (typeof(require) !== 'undefined') { var tree = require('less/tree') }
|
|
|
|
tree.URL = function URL(val) {
|
|
this.value = val;
|
|
};
|
|
tree.URL.prototype = {
|
|
toCSS: function () {
|
|
return "url(" + (this.value.toCSS ? this.value.toCSS() : this.value) + ")";
|
|
}
|
|
};
|