New issue
 Projects > js > Issues > Refactor #4581

Replace cc._pConst and cc._sizeConst to cc.p and cc.size

Refactor #4581 [Closed]
ludingping 2014-03-27 09:53 . Updated about 3 years ago

when v2.2.1 to v2.2.2, we Replaced cc.p and cc.size to cc._pConst and cc._sizeConst, because it can be given our better performance.

But some developers feel very conflict when they want to change return value of getPosition, getContentSize etc.

pConst and sizeConst aren't very friendly, so we correct this design mistake in v2.2.3.

I'm so sorry to do that.

ludingping 2014-03-31 08:06
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:6b2075fc995419f27317b204267f1962f122b8a2.

Atom PDF

Start date:2014-03-27
Due date:
% Done:


Target version:v2.2.3

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