mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Simplify check for existence of isCopyable
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
This commit is contained in:
@@ -108,7 +108,7 @@ let copyCoords: Coordinate | null = null;
|
||||
function isCopyable(focused: IFocusableNode): boolean {
|
||||
if (!isICopyable(focused) || !isIDeletable(focused) || !isDraggable(focused))
|
||||
return false;
|
||||
if (focused.isCopyable !== undefined) {
|
||||
if (focused.isCopyable) {
|
||||
return focused.isCopyable();
|
||||
} else if (
|
||||
focused instanceof BlockSvg ||
|
||||
|
||||
Reference in New Issue
Block a user