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