diff --git a/src/core/display/Container.js b/src/core/display/Container.js index 6a3612c..5399755 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -124,11 +124,6 @@ const index1 = this.getChildIndex(child); const index2 = this.getChildIndex(child2); - if (index1 < 0 || index2 < 0) - { - throw new Error('swapChildren: Both the supplied DisplayObjects must be children of the caller.'); - } - this.children[index1] = child2; this.children[index2] = child; this.onChildrenChange(index1 < index2 ? index1 : index2);