New issue
 Projects > js > Issues > Refactor #3945

Refactor #3661: JS style API refactoring(OO)

Refactor basic data structures

Refactor #3945 [Closed]
pandamicro 2014-02-10 06:24 . Updated almost 3 years ago

Class involved:
cc.Color
cc.Point
cc.Size
cc.Rect

Remove cc.PointMake, cc.PointZero, cc.Point,
cc.SizeMake, cc.SizeZero, cc.Size,
cc.RectMake, cc.RectZero, cc.Rect

use this
cc.color(255, 0, 0, 255);
cc.color(“#FF0000”);
cc.p(20, 30);
cc.size(200, 200);
cc.rect(20, 30, 200, 200);

pandamicro 2014-02-10 06:24
  • Parent task set to #3661
xingsenma 2014-02-17 09:25
  • Assignee set to xingsenma
xingsenma 2014-03-06 14:05
  • Status changed from New to Closed

Applied in changeset commit:926714f2ca5d646c9dbbc8b9f5d874126358c20b.

Atom PDF

Status:Closed
Start date:2014-03-04
Priority:High
Due date:
Assignee:xingsenma
% Done:

100%

Category:-
Target version:v3.0 alpha

Subtasks

Refactor #4109: Refactor properties access with getter/setter in samplesClosedpandamicro

Refactor #4241: Bind cc.color to JSBClosedpandamicro

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.