mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
restore original BaseEvent implementation (#2962)
This commit is contained in:
committed by
Eugenio Romano
parent
28ca71a5f9
commit
adb0b8df38
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user