@@ -484,7 +484,8 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
484484 this . _position . y = yValue ;
485485 //this._position = cc.p(newPosOrxValue,yValue);
486486 } else if ( newPosOrxValue . y != null ) {
487- this . _position = newPosOrxValue ;
487+ this . _position . x = newPosOrxValue . x ;
488+ this . _position . y = newPosOrxValue . y ;
488489 }
489490
490491 //save dirty region when after changed
@@ -622,9 +623,11 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
622623 //save dirty region when before change
623624 //this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
624625
625- this . _anchorPoint = point ;
626- this . _anchorPointInPoints = cc . p ( this . _contentSize . width * this . _anchorPoint . x ,
627- this . _contentSize . height * this . _anchorPoint . y ) ;
626+ this . _anchorPoint . x = point . x ;
627+ this . _anchorPoint . y = point . y ;
628+
629+ this . _anchorPointInPoints . x = this . _contentSize . width * this . _anchorPoint . x ;
630+ this . _anchorPointInPoints . y = this . _contentSize . height * this . _anchorPoint . y ;
628631
629632 //save dirty region when after changed
630633 //this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
@@ -655,10 +658,11 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
655658 if ( ! cc . Size . CCSizeEqualToSize ( size , this . _contentSize ) ) {
656659 //save dirty region when before change
657660 //this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
658- this . _contentSize = size ;
661+ this . _contentSize . width = size . width ;
662+ this . _contentSize . height = size . height ;
659663
660- this . _anchorPointInPoints = cc . p ( this . _contentSize . width * this . _anchorPoint . x ,
661- this . _contentSize . height * this . _anchorPoint . y ) ;
664+ this . _anchorPointInPoints . width = this . _contentSize . width * this . _anchorPoint . x ;
665+ this . _anchorPointInPoints . height = this . _contentSize . height * this . _anchorPoint . y ;
662666 //save dirty region when before change
663667 //this._addDirtyRegionToDirector(this.getBoundingBoxToWorld());
664668 this . setNodeDirty ( ) ;
0 commit comments