Skip to content

Commit eb84160

Browse files
committed
Merge pull request #53 from wizcorp-olivier/getChildCount
New method WuiDom#getChildCount
2 parents 45ee6e2 + b813aae commit eb84160

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ WuiDom.prototype.getChildren = function () {
331331
return this._childrenList.concat();
332332
};
333333

334+
/**
335+
* @returns {number} - Number of children attached to this WuiDom
336+
*/
337+
WuiDom.prototype.getChildCount = function () {
338+
return this._childrenList.length;
339+
};
340+
334341
/**
335342
* @param {string} childName
336343
* @returns {WuiDom|undefined}

0 commit comments

Comments
 (0)