fix: 事件取消未判断空
This commit is contained in:
parent
0b591bdb83
commit
c3fa8bf3df
@ -148,9 +148,12 @@ mapEventName();
|
||||
module.exports = {
|
||||
on: listen,
|
||||
disable: function (jsp) {
|
||||
var jspl = jspListener[jsp.description.name];
|
||||
if (jspl) {
|
||||
jspListener[jsp.description.name].forEach(function (t) {
|
||||
t.off();
|
||||
});
|
||||
delete jspListener[jsp.description.name];
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user