mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 23:57:30 +08:00
Avoid using arrays when unnecessary
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user