diff --git a/Turtle.types.ps1xml b/Turtle.types.ps1xml index 6178096..76f6a6d 100644 --- a/Turtle.types.ps1xml +++ b/Turtle.types.ps1xml @@ -8610,7 +8610,7 @@ foreach ($javaScriptProperty in $this.psobject.properties | Sort-Object Name) { function teleport(x,y) { var penState = this.penDown this.penDown = false - step(x - this.x, y - this.y) + this.step(x - this.x, y - this.y) this.penDown = penState return this } diff --git a/Types/Turtle.js/teleport.js b/Types/Turtle.js/teleport.js index 703b335..73a821c 100644 --- a/Types/Turtle.js/teleport.js +++ b/Types/Turtle.js/teleport.js @@ -1,7 +1,7 @@ function teleport(x,y) { var penState = this.penDown this.penDown = false - step(x - this.x, y - this.y) + this.step(x - this.x, y - this.y) this.penDown = penState return this } \ No newline at end of file