Permalink
Browse files

add #getNode(nodeId)

  • Loading branch information...
1 parent 2a4f255 commit bacb4fceb767175c66900b66ddece7b9f1b39d78 brighthas committed Oct 31, 2013
Showing with 7 additions and 3 deletions.
  1. +5 −1 README.md
  2. +1 −1 index.js
  3. +1 −1 package.json
View
@@ -30,6 +30,10 @@ API
var rootNode = new Node();
var childNode = root.createChild();
+##### #getNode(childId)
+
+ return a node. if no return null.
+
##### #appendChild(child)
var rootNode = new Node();
@@ -227,4 +231,4 @@ events
### LICENSE
- MIT , brighthas@gmail.com
+ MIT , brighthas@gmail.com
View
@@ -174,7 +174,7 @@ o.layer = function (childId) {
}
}
-o._getNode = function (childId) {
+o.getNode = o._getNode = function (childId) {
var child;
View
@@ -1,6 +1,6 @@
{
"name": "tree-node",
- "version": "0.0.2",
+ "version": "0.0.3",
"description": "tree node",
"main": "index.js",
"scripts": {

0 comments on commit bacb4fc

Please sign in to comment.