merge with master
[platform/framework/web/web-ui-fw.git] / build-tools / lib / less / tree / alpha.js
1 (function (tree) {
2
3 tree.Alpha = function (val) {
4     this.value = val;
5 };
6 tree.Alpha.prototype = {
7     toCSS: function () {
8         return "alpha(opacity=" +
9                (this.value.toCSS ? this.value.toCSS() : this.value) + ")";
10     },
11     eval: function (env) {
12         if (this.value.eval) { this.value = this.value.eval(env) }
13         return this;
14     }
15 };
16
17 })(require('../tree'));