mirror of
https://github.com/denoland/deno
synced 2024-08-27 20:09:17 +00:00
remove isTrusted
's setter (#2006)
This commit is contained in:
parent
989e86c8de
commit
8c770c5a90
14
js/event.ts
14
js/event.ts
|
@ -91,20 +91,6 @@ export class Event implements domTypes.Event {
|
|||
return getPrivateValue(this, eventAttributes, "isTrusted");
|
||||
}
|
||||
|
||||
set isTrusted(value) {
|
||||
eventAttributes.set(this, {
|
||||
type: this.type,
|
||||
bubbles: this.bubbles,
|
||||
cancelable: this.cancelable,
|
||||
composed: this.composed,
|
||||
currentTarget: this.currentTarget,
|
||||
eventPhase: this.eventPhase,
|
||||
isTrusted: value,
|
||||
target: this.target,
|
||||
timeStamp: this.timeStamp
|
||||
});
|
||||
}
|
||||
|
||||
get target(): domTypes.EventTarget {
|
||||
return getPrivateValue(this, eventAttributes, "target");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue