mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Changed events to use pre-existing names
This commit is contained in:
@@ -721,15 +721,13 @@ export class Unit extends CustomMarker {
|
||||
// Tell everyone a unit (de-)selection has happened, usually a panel or something.
|
||||
|
||||
const detail = {
|
||||
"detail": {
|
||||
"unit": this
|
||||
}
|
||||
"detail": this
|
||||
};
|
||||
|
||||
if ( unitIsSelected ) {
|
||||
document.dispatchEvent( new CustomEvent( "unitSelected", detail ) );
|
||||
document.dispatchEvent( new CustomEvent( "unitSelection", detail ) );
|
||||
} else {
|
||||
document.dispatchEvent( new CustomEvent( "unitDeselected", detail ) );
|
||||
document.dispatchEvent( new CustomEvent( "unitDeselection", detail ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user