1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

remove isTrusted's setter (#2006)

This commit is contained in:
迷渡 2019-03-27 20:38:49 +08:00 committed by Ryan Dahl
parent 989e86c8de
commit 8c770c5a90

View file

@ -91,20 +91,6 @@ export class Event implements domTypes.Event {
return getPrivateValue(this, eventAttributes, "isTrusted"); 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 { get target(): domTypes.EventTarget {
return getPrivateValue(this, eventAttributes, "target"); return getPrivateValue(this, eventAttributes, "target");
} }