File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ cc.DOM.methods = /** @lends cc.DOM# */{
5353 } else {
5454 this . _position . _x = x ;
5555 this . _position . _y = y ;
56- //this._position = cc.p(newPosOrxValue,yValue);
5756 }
5857 this . setNodeDirty ( ) ;
5958 this . dom . translates ( this . _position . _x , - this . _position . _y ) ;
@@ -124,13 +123,9 @@ cc.DOM.methods = /** @lends cc.DOM# */{
124123 setAnchorPoint :function ( point , y ) {
125124 var locAnchorPoint = this . _anchorPoint ;
126125 if ( y === undefined ) {
127- if ( ( point . x === locAnchorPoint . _x ) && ( point . y === locAnchorPoint . _y ) )
128- return ;
129126 locAnchorPoint . _x = point . x ;
130127 locAnchorPoint . _y = point . y ;
131128 } else {
132- if ( ( point === locAnchorPoint . _x ) && ( y === locAnchorPoint . _y ) )
133- return ;
134129 locAnchorPoint . _x = point ;
135130 locAnchorPoint . _y = y ;
136131 }
@@ -157,13 +152,9 @@ cc.DOM.methods = /** @lends cc.DOM# */{
157152 setContentSize :function ( size , height ) {
158153 var locContentSize = this . _contentSize ;
159154 if ( height === undefined ) {
160- if ( ( size . width === locContentSize . _width ) && ( size . height === locContentSize . _height ) )
161- return ;
162155 locContentSize . _width = size . width ;
163156 locContentSize . _height = size . height ;
164157 } else {
165- if ( ( size === locContentSize . _width ) && ( height === locContentSize . _height ) )
166- return ;
167158 locContentSize . _width = size ;
168159 locContentSize . _height = height ;
169160 }
You can’t perform that action at this time.
0 commit comments