Skip to content

Commit fe7f99c

Browse files
author
pandamicro
committed
Fix cc.Color alpha setter issue
1 parent 50399ae commit fe7f99c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cocos2d/core/platform/CCTypes.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ _p._getB = function () {
6060
_p._setB = function (value) {
6161
this._val = (this._val & 0xffff00ff) | (value << 8);
6262
};
63-
6463
_p._getA = function () {
6564
return this._val & 0x000000ff;
6665
};
67-
68-
_p.setA = function (value) {
66+
_p._setA = function (value) {
6967
this._val = (this._val & 0xffffff00) | value;
7068
};
7169

0 commit comments

Comments
 (0)