mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user