File tree 3 files changed +5
-18
lines changed
extensions/ccui/base-classes
3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 58
58
this . originVisit ( parentCmd ) ;
59
59
} ;
60
60
61
- proto . transform = function ( parentCmd ) {
61
+ proto . transform = function ( parentCmd , recursive ) {
62
62
var node = this . _node ;
63
- cc . Node . CanvasRenderCmd . prototype . transform . call ( this , parentCmd ) ;
63
+ this . originTransform ( parentCmd , recursive ) ;
64
64
if ( node . _positionsAreDirty ) {
65
65
node . _updatePositions ( ) ;
66
66
node . _positionsAreDirty = false ;
67
67
}
68
68
69
69
var children = node . _children ;
70
70
for ( var i = 0 ; i < children . length ; i ++ ) {
71
- children [ i ] . transform ( this , true ) ;
71
+ children [ i ] . transform ( this ) ;
72
72
}
73
73
} ;
74
74
Original file line number Diff line number Diff line change 107
107
if ( pchild ) {
108
108
pchild . _vertexZ = parentCmd . _node . _vertexZ ;
109
109
var tempCmd = pchild . _renderCmd ;
110
- tempCmd . transform ( this , true ) ;
110
+ tempCmd . transform ( this ) ;
111
111
tempCmd . _dirtyFlag = tempCmd . _dirtyFlag & flags . transformDirty ^ tempCmd . _dirtyFlag ;
112
112
}
113
113
else {
118
118
else {
119
119
node . _adjustScale9ImageScale ( ) ;
120
120
node . _adjustScale9ImagePosition ( ) ;
121
- node . _scale9Image . _renderCmd . transform ( this , true ) ;
121
+ node . _scale9Image . _renderCmd . transform ( this ) ;
122
122
}
123
123
} ;
124
124
Original file line number Diff line number Diff line change @@ -323,19 +323,6 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
323
323
return this . _isAncestorsVisible ( parent ) ;
324
324
} ,
325
325
326
- _cleanupWidget : function ( ) {
327
- //clean up _touchListener
328
- this . _eventDispatcher . removeEventListener ( this . _touchListener ) ;
329
- this . _touchEnabled = false ;
330
- this . _touchListener = null ;
331
-
332
- //cleanup focused widget and focus navigation controller
333
- if ( ccui . Widget . _focusedWidget === this ) {
334
- ccui . Widget . _focusedWidget = null ;
335
- ccui . Widget . _focusNavigationController = null ;
336
- }
337
- } ,
338
-
339
326
/**
340
327
* <p>
341
328
* Sets whether the widget is enabled <br/>
You can’t perform that action at this time.
0 commit comments