From 70002ad9c81ad9dd3c5ba6b6dc90189605cd3099 Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Tue, 18 Dec 2018 07:11:14 -0800 Subject: [PATCH] Fix a typo in Object.destroy() s/splice/slice. --- src/objects/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/object.js b/src/objects/object.js index aa3211c47..f6c7798a7 100644 --- a/src/objects/object.js +++ b/src/objects/object.js @@ -1757,7 +1757,7 @@ class xeoglObject extends Component { } if (this._childList.length) { // Clone the _childList before iterating it, so our children don't mess us up when calling removeChild(). - const tempChildList = this._childList.splice(); + const tempChildList = this._childList.slice(); let object; for (let i = 0, len = tempChildList.length; i < len; i++) { object = tempChildList[i];