1
0
Fork 0

fix(core): Incorrect warning message

This commit is contained in:
Joost De Cock 2022-05-21 18:42:13 +02:00
parent 164778f6a4
commit 3af2a13439

View file

@ -38,7 +38,7 @@ Path.prototype.setRender = function (render = true) {
/** Adds a move operation to Point to */ /** Adds a move operation to Point to */
Path.prototype.move = function (to) { Path.prototype.move = function (to) {
if (to instanceof Point !== true) if (to instanceof Point !== true)
this.raise.warning('Called `Path.rotate(to)` but `to` is not a `Point` object') this.raise.warning('Called `Path.move(to)` but `to` is not a `Point` object')
this.ops.push({ type: 'move', to }) this.ops.push({ type: 'move', to })
return this return this