diff --git a/src/extras/getChildByName.js b/src/extras/getChildByName.js index 12efb4f..4b2f964 100644 --- a/src/extras/getChildByName.js +++ b/src/extras/getChildByName.js @@ -14,10 +14,12 @@ * @param name {string} the instance name * @return {DisplayObject} */ -Container.prototype.getChildByName = function(val) +Container.prototype.getChildByName = function (val) { - for (i = 0; i < this.children.length; i++) { - if (this.children[i].name == val) { + for (i = 0; i < this.children.length; i++) + { + if (this.children[i].name === val) + { return this.children[i]; } }