Avoid using arrays when unnecessary

This commit is contained in:
barsdeveloper
2023-01-04 20:52:09 +01:00
parent 39cade4879
commit 3c5017de91
29 changed files with 570 additions and 426 deletions

View File

@@ -21,8 +21,11 @@ export default class IDraggableControlElement extends IDraggableElement {
this.windowElement = this.closest("ueb-window")
}
/** @param {Number[]} param0 */
setLocation([x, y]) {
super.setLocation(this.template.adjustLocation([x, y]))
/**
* @param {Number} x
* @param {Number} y
*/
setLocation(x, y) {
super.setLocation(...this.template.adjustLocation(x, y))
}
}