Skip to content

Commit 54ba39a

Browse files
committed
Update CCdomNode.js
1 parent 9f65531 commit 54ba39a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

extensions/editbox/CCdomNode.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)