Fixed some compiler errors

canary
WolverinDEV 2019-11-09 13:24:55 +01:00
parent 84f0538de7
commit 1d22caf19b
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
/// <reference path="ui/elements/modal.ts" />
//Used by CertAccept popup
if(typeof(customElements) !== "undefined") {

View File

@ -1,4 +1,4 @@
import MouseDownEvent = JQuery.MouseDownEvent;
/// <reference path="../../PPTListener.ts" />
enum ElementType {
HEADER,
@ -87,7 +87,7 @@ class ModalProperties {
full_size?: boolean = false;
}
$(document).on('mousedown', (event: MouseDownEvent) => {
$(document).on('mousedown', (event: JQuery.MouseDownEvent) => {
/* pageX or pageY are undefined if this is an event executed via .trigger('click'); */
if(_global_modal_count == 0 || typeof(event.pageX) === "undefined" || typeof(event.pageY) === "undefined")
return;