diff options
Diffstat (limited to 'build-tools/lib/less/tree/variable.js')
-rw-r--r-- | build-tools/lib/less/tree/variable.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/build-tools/lib/less/tree/variable.js b/build-tools/lib/less/tree/variable.js deleted file mode 100644 index 10f7c084..00000000 --- a/build-tools/lib/less/tree/variable.js +++ /dev/null @@ -1,24 +0,0 @@ -(function (tree) { - -tree.Variable = function (name, index) { this.name = name, this.index = index }; -tree.Variable.prototype = { - eval: function (env) { - var variable, v, name = this.name; - - if (name.indexOf('@@') == 0) { - name = '@' + new(tree.Variable)(name.slice(1)).eval(env).value; - } - - if (variable = tree.find(env.frames, function (frame) { - if (v = frame.variable(name)) { - return v.value.eval(env); - } - })) { return variable } - else { - throw { message: "variable " + name + " is undefined", - index: this.index }; - } - } -}; - -})(require('less/tree')); |