mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
restore original BaseEvent implementation (#2962)
This commit is contained in:
parent
28ca71a5f9
commit
adb0b8df38
@ -18,8 +18,16 @@
|
|||||||
/** Base cancellable event implementation */
|
/** Base cancellable event implementation */
|
||||||
export class BaseEvent<T> {
|
export class BaseEvent<T> {
|
||||||
|
|
||||||
defaultPrevented: boolean = false;
|
private isDefaultPrevented: boolean = false;
|
||||||
|
|
||||||
value: T;
|
value: T;
|
||||||
|
|
||||||
|
get defaultPrevented() {
|
||||||
|
return this.isDefaultPrevented;
|
||||||
|
}
|
||||||
|
|
||||||
|
preventDefault() {
|
||||||
|
this.isDefaultPrevented = true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user