mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Remove event.ts stopEvent (#157182)
Remove event.stopEvent This function has the same function as EventHelper.stop but is only used in one place
This commit is contained in:
@@ -836,11 +836,12 @@ export interface EventLike {
|
||||
}
|
||||
|
||||
export const EventHelper = {
|
||||
stop: function (e: EventLike, cancelBubble?: boolean) {
|
||||
stop: <T extends EventLike>(e: T, cancelBubble?: boolean): T => {
|
||||
e.preventDefault();
|
||||
if (cancelBubble) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
return e;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user