Skip to content

Commit e92ac25

Browse files
author
SeanLin
committed
Merge pull request #725 from Wu-Hao/masterTeam
fixed DOM Node
2 parents c4c287f + bd20374 commit e92ac25

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cocos2d/base_nodes/CCdomNode.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ cc.DOM.methods = /** @lends cc.DOM# */{
144144
this._contentSize.height * this._anchorPoint.y);
145145
this.dom.width = size.width;
146146
this.dom.height = size.height;
147-
this.setAnchorpoint(this.getAnchorPoint());
147+
this.setAnchorPoint(this.getAnchorPoint());
148148
}
149149
if (this.canvas) {
150150
this.canvas.width = this._contentSize.width;
@@ -342,15 +342,15 @@ cc.DOM.setTransform = function (x) {
342342
x.dom.rotation = x.getRotation();
343343
x.dom.scale = {x:x.getScaleX(), y:x.getScaleY()};
344344
x.dom.skew = {x:x.getSkewX(), y:x.getSkewY()};
345-
if (x.setAnchorpoint)
346-
x.setAnchorpoint(x.getAnchorPoint());
345+
if (x.setAnchorPoint)
346+
x.setAnchorPoint(x.getAnchorPoint());
347347
x.dom.transforms();
348348
x.dom.position.y = -x.getPosition().y;
349349
x.dom.rotation = x.getRotation();
350350
x.dom.scale = {x:x.getScaleX(), y:x.getScaleY()};
351351
x.dom.skew = {x:x.getSkewX(), y:x.getSkewY()};
352-
if (x.setAnchorpoint)
353-
x.setAnchorpoint(x.getAnchorPoint());
352+
if (x.setAnchorPoint)
353+
x.setAnchorPoint(x.getAnchorPoint());
354354
x.dom.transforms();
355355
}
356356

0 commit comments

Comments
 (0)