mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
use clone
This commit is contained in:
@@ -232,8 +232,7 @@ Blockly.BlockDragSurfaceSvg.prototype.getCurrentBlock = function() {
|
||||
*/
|
||||
Blockly.BlockDragSurfaceSvg.prototype.getWsTranslation = function() {
|
||||
// Returning a copy so the coordinate can not be changed outside this class.
|
||||
return new Blockly.utils.Coordinate(
|
||||
this.childSurfaceXY_.x, this.childSurfaceXY_.y);
|
||||
return this.childSurfaceXY_.clone();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user