restore original BaseEvent implementation (#2962)

This commit is contained in:
Denys Vuika 2018-02-20 10:51:15 +00:00 committed by Eugenio Romano
parent 28ca71a5f9
commit adb0b8df38

View File

@ -18,8 +18,16 @@
/** Base cancellable event implementation */
export class BaseEvent<T> {
defaultPrevented: boolean = false;
private isDefaultPrevented: boolean = false;
value: T;
get defaultPrevented() {
return this.isDefaultPrevented;
}
preventDefault() {
this.isDefaultPrevented = true;
}
}