File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 11# Release history
22
3+ ## v0.7.2
4+ ### How many children do you have?
5+ The method ` getChildCount ` has been added to get the number of children a WuiDom may have.
6+ Simpler and faster than going through ` getChildren().length ` .
7+
38## v0.7.1
49### NPM Dependencies update
510Updated ` events ` to 1.1.0
Original file line number Diff line number Diff line change @@ -219,6 +219,18 @@ Calling the method:
219219The method will return a copy of the children list.
220220Using it can help to iterate through elements easily for specific task.
221221
222+ #### getChildCount
223+
224+ Calling the method:
225+
226+ ``` javascript
227+ var nbElements = myContainer .getChildCount ();
228+
229+ myElement .setText (' Elements in the list: ' + nbElements);
230+ ```
231+
232+ The method return a number. Faster than doing ` myContainer.getChildren().length ` .
233+
222234
223235#### getWuiName
224236
@@ -634,4 +646,4 @@ Calling the method:
634646childElement .replaceClassNames ([' unread' ], [' read' , ' stroke' ]);
635647` ` `
636648
637- [WizUI]: http://wizui.github.com "WizUI"
649+ [WizUI]: http://wizui.github.com "WizUI"
Original file line number Diff line number Diff line change 11{
22 "name" : " WuiDom" ,
33 "repo" : " wizui/wuidom" ,
4- "version" : " 0.7.1 " ,
4+ "version" : " 0.7.2 " ,
55 "description" : " Core Class for WizUI" ,
66 "dependencies" : {
77 "Wizcorp/util" : " 0.1.0" ,
Original file line number Diff line number Diff line change 1212 ],
1313 "repository" : " wizui/wuidom" ,
1414 "homepage" : " http://wizui.github.io/" ,
15- "version" : " 0.7.1 " ,
15+ "version" : " 0.7.2 " ,
1616 "format" : " cjs" ,
1717 "registry" : " npm" ,
1818 "dependencies" : {
You can’t perform that action at this time.
0 commit comments