Skip to content

Commit 0100707

Browse files
committed
added support for menuItemToggle, fixed some bugs
1 parent 057a79a commit 0100707

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocos2d/base_nodes/CCdomNode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ cc.DOM.methods = {
5252
},
5353
setScale:function (scale, scaleY) {
5454
//save dirty region when before change
55-
//this._addDirtyRegionToDirector(this.boundingBoxToWorld());
55+
//this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
5656

5757
this._scaleX = scale;
5858
this._scaleY = scaleY || scale;
5959

6060
//save dirty region when after changed
61-
//this._addDirtyRegionToDirector(this.boundingBoxToWorld());
61+
//this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
6262
this.dom.resize(this._scaleX, this._scaleY);
6363
},
6464
setScaleX:function (x) {
@@ -107,7 +107,7 @@ cc.DOM.methods = {
107107
if (this._rotation == newRotation)
108108
return;
109109
//save dirty region when before change
110-
//this._addDirtyRegionToDirector(this.boundingBoxToWorld());
110+
//this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
111111

112112
this._rotation = newRotation;
113113
this._rotationRadians = this._rotation * (Math.PI / 180);

0 commit comments

Comments
 (0)