File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ cc.DOM.methods = /** @lends cc.DOM# */{
330330 this . dom . style . display = ( x ) ? 'block' : 'none' ;
331331 } ,
332332 _setLocalZOrder :function ( z ) {
333- this . _localZOrder = z
333+ this . _localZOrder = z ;
334334 this . setNodeDirty ( ) ;
335335 if ( this . dom )
336336 this . dom . zIndex = z ;
@@ -393,18 +393,14 @@ cc.DOM.methods = /** @lends cc.DOM# */{
393393 this . stopAllActions ( ) ;
394394 this . unscheduleAllCallbacks ( ) ;
395395
396+ cc . eventManager . removeListeners ( this ) ;
397+
396398 // timers
397399 this . _arrayMakeObjectsPerformSelector ( this . _children , cc . Node . _stateCallbackType . cleanup ) ;
398400 if ( this . dom ) {
399401 this . dom . remove ( ) ;
400402 }
401403 } ,
402- /**
403- * replace remove from parent and clean up of ccNode
404- */
405- removeFromParentAndCleanup :function ( ) {
406- this . dom . remove ( ) ;
407- } ,
408404 setOpacity :function ( o ) {
409405 this . _opacity = o ;
410406 this . dom . style . opacity = o / 255 ;
You can’t perform that action at this time.
0 commit comments