Commit aabb1637 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

В CAscColor добавил конструктор от аргументов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52569 954022d7-b5bf-4e40-9824-e11837661b57
parent 377c5aab
...@@ -40,6 +40,14 @@ function CAscColor() ...@@ -40,6 +40,14 @@ function CAscColor()
this.Mods = new Array(); this.Mods = new Array();
this.ColorSchemeId = -1; this.ColorSchemeId = -1;
if (3 <= arguments.length) {
this.r = arguments[0];
this.g = arguments[1];
this.b = arguments[2];
}
if (4 === arguments.length)
this.a = arguments[3];
} }
CAscColor.prototype.get_r = function(){return this.r} CAscColor.prototype.get_r = function(){return this.r}
CAscColor.prototype.put_r = function(v){this.r = v; this.hex = undefined;} CAscColor.prototype.put_r = function(v){this.r = v; this.hex = undefined;}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment