carto/lib/less/node/call.js
2010-03-01 19:47:32 -05:00

12 lines
357 B
JavaScript

if (typeof(window) === 'undefined') { var tree = require(require('path').join(__dirname, '..', '..', 'less', 'tree')); }
tree.Call = function Call(name, args) {
this.name = name;
this.args = args;
};
tree.Call.prototype = {
toCSS: function (context, env) {
return that.functions[this.name].apply(functions, this.args).toCSS();
}
};