Comparing version 0.2.0 to 0.3.0
# Changes | ||
## v0.3.0 | ||
- Added `removeAll` | ||
## v0.2.0 | ||
@@ -4,0 +8,0 @@ |
@@ -110,2 +110,10 @@ /* | ||
/* | ||
* Removes all child nodes. | ||
*/ | ||
removeAll: function () { | ||
this.children.removeAll(); | ||
this._map = {}; | ||
}, | ||
/* | ||
* Called by `set` to add a node to the children. | ||
@@ -112,0 +120,0 @@ */ |
{ | ||
"name" : "live-tree", | ||
"version" : "0.2.0", | ||
"version" : "0.3.0", | ||
"description" : "Fast tree with live iterator", | ||
@@ -13,3 +13,4 @@ "keywords" : ["tree", "iterator"], | ||
"scripts" : { | ||
"test" : "make test" | ||
"start" : "mocha --watch", | ||
"test" : "make" | ||
}, | ||
@@ -26,7 +27,9 @@ "repository" : { | ||
"devDependencies" : { | ||
"mocha" : ">=1.14 <2", | ||
"jslint" : "~0.2.5", | ||
"consolify" : "~0.6.0", | ||
"phantomic" : "~0.2.1", | ||
"browser-reload" : ">=1.0 <2" | ||
"mocha" : ">=1.17 <2", | ||
"jslint" : "~0.2.6", | ||
"browserify" : ">=3.19 <4", | ||
"coverify" : "~1.0.4", | ||
"mocaccino" : "~0.1.1", | ||
"consolify" : "~0.7.0", | ||
"phantomic" : "~0.2.1" | ||
}, | ||
@@ -33,0 +36,0 @@ "files" : ["lib", "README.md", "CHANGES.md", "LICENSE"], |
@@ -52,2 +52,3 @@ # live-tree.js [![Build Status](https://secure.travis-ci.org/mantoni/live-tree.js.png?branch=master)](http://travis-ci.org/mantoni/live-tree.js) | ||
will be removed as well. | ||
- `removeAll()`: Removes all child nodes | ||
- `node(name)`: Return the named node or undefined if the node does not exist | ||
@@ -62,2 +63,4 @@ - `_add(node)`: Called by `set` to add a node to the children. The default | ||
[live-list]: https://github.com/mantoni/live-list.js "Fast linked list with live iterator" | ||
## Iterator API | ||
@@ -77,2 +80,1 @@ | ||
[live-list]: https://github.com/mantoni/live-list.js "Fast linked list with live iterator" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9018
179
78
7