diff --git a/.gitignore b/.gitignore index 9c77a08..871f6a9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,4 @@ *__temp node_modules docs/ -dist/ +bin/ diff --git a/.gitignore b/.gitignore index 9c77a08..871f6a9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,4 @@ *__temp node_modules docs/ -dist/ +bin/ diff --git a/src/core/display/Container.js b/src/core/display/Container.js index 5733963..3bb4a50 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -157,7 +157,7 @@ // prevent adding self as child if (child === this) { - return; + return child; } if (index >= 0 && index <= this.children.length) @@ -449,8 +449,6 @@ return this._bounds; }; -Container.prototype.getBounds - /** * Retrieves the non-global local bounds of the Container as a rectangle. * The calculation takes all visible children into consideration.