@@ -247,7 +247,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
247247 return ;
248248
249249 var i , len = array . length , node ;
250- var nodeCallbackType = cc . Node . _StateCallbackType ;
250+ var nodeCallbackType = cc . Node . _stateCallbackType ;
251251 switch ( callbackType ) {
252252 case nodeCallbackType . onEnter :
253253 for ( i = 0 ; i < len ; i ++ ) {
@@ -1241,7 +1241,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
12411241 cc . eventManager . removeListeners ( this ) ;
12421242
12431243 // timers
1244- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . cleanup ) ;
1244+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . cleanup ) ;
12451245 } ,
12461246
12471247 // composition: GET
@@ -1560,7 +1560,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
15601560 onEnter : function ( ) {
15611561 this . _isTransitionFinished = false ;
15621562 this . _running = true ; //should be running before resumeSchedule
1563- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . onEnter ) ;
1563+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . onEnter ) ;
15641564 this . resume ( ) ;
15651565 } ,
15661566
@@ -1574,7 +1574,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
15741574 */
15751575 onEnterTransitionDidFinish : function ( ) {
15761576 this . _isTransitionFinished = true ;
1577- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . onEnterTransitionDidFinish ) ;
1577+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . onEnterTransitionDidFinish ) ;
15781578 } ,
15791579
15801580 /**
@@ -1584,7 +1584,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
15841584 * @function
15851585 */
15861586 onExitTransitionDidStart : function ( ) {
1587- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . onExitTransitionDidStart ) ;
1587+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . onExitTransitionDidStart ) ;
15881588 } ,
15891589
15901590 /**
@@ -1599,7 +1599,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
15991599 onExit : function ( ) {
16001600 this . _running = false ;
16011601 this . pause ( ) ;
1602- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . onExit ) ;
1602+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . onExit ) ;
16031603 this . removeAllComponents ( ) ;
16041604 } ,
16051605
@@ -2020,7 +2020,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
20202020 */
20212021 updateTransform : function ( ) {
20222022 // Recursively iterate over children
2023- this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _StateCallbackType . updateTransform ) ;
2023+ this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . updateTransform ) ;
20242024 } ,
20252025
20262026 /**
@@ -2213,7 +2213,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
22132213 * It should be set in initialize phase.
22142214 * </p>
22152215 * @function
2216- * @param {cc.GLProgram } newShaderProgram The shader program which fetchs from CCShaderCache.
2216+ * @param {cc.GLProgram } newShaderProgram The shader program which fetches from CCShaderCache.
22172217 * @example
22182218 * node.setGLProgram(cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURECOLOR));
22192219 */
@@ -2501,10 +2501,6 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
25012501 else
25022502 parentColor = cc . color . WHITE ;
25032503 this . updateDisplayedColor ( parentColor ) ;
2504-
2505- /*if (color.a !== undefined && !color.a_undefined) { //setColor doesn't support changing opacity, please use setOpacity
2506- this.setOpacity(color.a);
2507- }*/
25082504 } ,
25092505
25102506 /**
@@ -2608,7 +2604,7 @@ cc.Node.create = function () {
26082604 return new cc . Node ( ) ;
26092605} ;
26102606
2611- cc . Node . _StateCallbackType = { onEnter : 1 , onExit : 2 , cleanup : 3 , onEnterTransitionDidFinish : 4 , updateTransform : 5 , onExitTransitionDidStart : 6 , sortAllChildren : 7 } ;
2607+ cc . Node . _stateCallbackType = { onEnter : 1 , onExit : 2 , cleanup : 3 , onEnterTransitionDidFinish : 4 , updateTransform : 5 , onExitTransitionDidStart : 6 , sortAllChildren : 7 } ;
26122608
26132609if ( cc . _renderType === cc . _RENDER_TYPE_CANVAS ) {
26142610 //redefine cc.Node
0 commit comments