When you delete an instance with right click and trigger the mouseup event before the scale animation has finished playing, the script will try to check for selectedInstance.hasMoved. But since it's already set to null, an ugly error gets thrown into the console.
When you delete an instance with right click and trigger the
mouseup
event before the scale animation has finished playing, the script will try to check forselectedInstance.hasMoved
. But since it's already set to null, an ugly error gets thrown into the console.