Skip to content

Commit 8192260

Browse files
committed
* Bumped version
1 parent eb84160 commit 8192260

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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
510
Updated `events` to 1.1.0

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@ Calling the method:
219219
The method will return a copy of the children list.
220220
Using 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:
634646
childElement.replaceClassNames(['unread'], ['read', 'stroke']);
635647
```
636648
637-
[WizUI]: http://wizui.github.com "WizUI"
649+
[WizUI]: http://wizui.github.com "WizUI"

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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": {

0 commit comments

Comments
 (0)