提交 827e75fa 编写于 作者: 雪洛's avatar 雪洛

fix: 修复非uni-app-x web端部分事件监听报错的Bug#ask/190670

上级 2e79f359
......@@ -10187,7 +10187,11 @@ function patchStopImmediatePropagation(e, value) {
originalStop.call(e);
e._stopped = true;
};
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
return value.map((fn) => {
const patchedFn = (e2) => !e2._stopped && fn && fn(e2);
patchedFn.__wwe = fn.__wwe;
return patchedFn;
});
} else {
return value;
}
......
......@@ -10320,7 +10320,11 @@ function patchStopImmediatePropagation(e, value) {
originalStop.call(e);
e._stopped = true;
};
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
return value.map((fn) => {
const patchedFn = (e2) => !e2._stopped && fn && fn(e2);
patchedFn.__wwe = fn.__wwe;
return patchedFn;
});
} else {
return value;
}
......
......@@ -10143,7 +10143,11 @@ function patchStopImmediatePropagation(e, value) {
originalStop.call(e);
e._stopped = true;
};
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
return value.map((fn) => {
const patchedFn = (e2) => !e2._stopped && fn && fn(e2);
patchedFn.__wwe = fn.__wwe;
return patchedFn;
});
} else {
return value;
}
......
......@@ -10276,7 +10276,11 @@ function patchStopImmediatePropagation(e, value) {
originalStop.call(e);
e._stopped = true;
};
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
return value.map((fn) => {
const patchedFn = (e2) => !e2._stopped && fn && fn(e2);
patchedFn.__wwe = fn.__wwe;
return patchedFn;
});
} else {
return value;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册