2011-01-18 03:46:22 +08:00
|
|
|
(function(tree) {
|
2010-03-02 04:32:21 +08:00
|
|
|
|
2011-01-18 03:46:22 +08:00
|
|
|
tree.Alpha = function(val) {
|
2010-02-26 11:32:34 +08:00
|
|
|
this.value = val;
|
|
|
|
};
|
2010-03-02 04:32:21 +08:00
|
|
|
tree.Alpha.prototype = {
|
2011-01-18 03:46:22 +08:00
|
|
|
toCSS: function() {
|
|
|
|
return 'alpha(opacity=' +
|
|
|
|
(this.value.toCSS ? this.value.toCSS() : this.value) + ')';
|
2010-05-08 11:21:16 +08:00
|
|
|
},
|
2011-01-18 03:46:22 +08:00
|
|
|
eval: function() { return this }
|
2010-02-26 11:32:34 +08:00
|
|
|
};
|
2010-06-16 06:44:59 +08:00
|
|
|
|
2011-01-06 03:23:28 +08:00
|
|
|
})(require('mess/tree'));
|