dock-spawn-ts
Advanced tools
Comparing version 2.300.0 to 2.301.0
@@ -94,4 +94,4 @@ import { DockManager } from "./DockManager.js"; | ||
performLayout(children: IDockContainer[], relayoutEvenIfEqual: boolean): void; | ||
onCloseButtonClicked(): void; | ||
onCloseButtonClicked(e: Event): void; | ||
close(): void; | ||
} |
@@ -133,3 +133,3 @@ import { Utils } from "./Utils.js"; | ||
this.closeButtonClickedHandler = | ||
new EventHandler(this.elementButtonClose, 'click', this.onCloseButtonClicked.bind(this)); | ||
new EventHandler(this.elementButtonClose, 'mousedown', this.onCloseButtonClicked.bind(this)); | ||
this.closeButtonTouchedHandler = | ||
@@ -306,3 +306,4 @@ new EventHandler(this.elementButtonClose, 'touchstart', this.onCloseButtonClicked.bind(this)); | ||
} | ||
onCloseButtonClicked() { | ||
onCloseButtonClicked(e) { | ||
e.preventDefault(); | ||
this.close(); | ||
@@ -309,0 +310,0 @@ } |
{ | ||
"name": "dock-spawn-ts", | ||
"version": "2.300.0", | ||
"version": "2.301.0", | ||
"description": "DockSpawn Typescript Version", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -193,3 +193,3 @@ import { DockManager } from "./DockManager.js"; | ||
this.closeButtonClickedHandler = | ||
new EventHandler(this.elementButtonClose, 'click', this.onCloseButtonClicked.bind(this)); | ||
new EventHandler(this.elementButtonClose, 'mousedown', this.onCloseButtonClicked.bind(this)); | ||
this.closeButtonTouchedHandler = | ||
@@ -388,3 +388,4 @@ new EventHandler(this.elementButtonClose, 'touchstart', this.onCloseButtonClicked.bind(this)); | ||
onCloseButtonClicked() { | ||
onCloseButtonClicked(e: Event) { | ||
e.preventDefault(); | ||
this.close(); | ||
@@ -391,0 +392,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
724230
10207