Merge pull request #1914 from pandamicro/v1.6

Fix JSB_EditboxDelegate crash if js delegate has already been garbage collected
This commit is contained in:
Jare Guo
2017-08-18 16:32:53 +08:00
committed by GitHub
+5
View File
@@ -518,6 +518,11 @@ var EditBox = cc.Class({
this.node.emit('editing-return', this);
},
onDestroy: function () {
this._sgNode.setDelegate(null);
this._super();
},
__preload: function() {
this._super();