Skip to content

Commit 3d4a89c

Browse files
committed
Merge pull request #1160 from dingpinglv/Iss2833_ReturnNewObjectForFunciton
fixed #2833: correct a mistake for latest commit
2 parents f8789ea + 3ccd04a commit 3d4a89c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cocos2d/sprite_nodes/CCSprite.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,7 @@ cc.Sprite = cc.NodeRGBA.extend(/** @lends cc.Sprite# */{
524524
* @param {cc.Rect} rect
525525
*/
526526
setVertexRect:function (rect) {
527-
this._rect.x = rect.x;
528-
this._rect.y = rect.y;
529-
this._rect.width = rect.width;
530-
this._rect.height = rect.height;
527+
this._rect = rect;
531528
},
532529

533530
sortAllChildren:function () {

0 commit comments

Comments
 (0)