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) {
|
||||||
jspListener[jsp.description.name].forEach(function (t) {
|
var jspl = jspListener[jsp.description.name];
|
||||||
t.off();
|
if (jspl) {
|
||||||
});
|
jspListener[jsp.description.name].forEach(function (t) {
|
||||||
delete jspListener[jsp.description.name];
|
t.off();
|
||||||
|
});
|
||||||
|
delete jspListener[jsp.description.name];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user