Permalink
Browse files

fixed reborn function

  • Loading branch information...
1 parent 9fb0d6b commit 4504304b2fada6490d58fb269c24b472a16f6296 brighthas committed Nov 16, 2013
Showing with 6 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 .npmignore
  3. +1 −1 index.js
  4. +3 −2 package.json
View
@@ -16,3 +16,4 @@ node_modules
build
components
+.idea
View
@@ -1 +1 @@
-buildcomponentsnode_modules
+buildcomponentsnode_modules.idea
View
@@ -323,7 +323,7 @@ o.data = function () {
o.reborn = function (jsonObj) {
- if (this._childIdsList.length === 0 && this.isRoot()) {
+ if (this.isRoot()) {
var self = this;
this._id = jsonObj.id;
this._childs = {};
View
@@ -1,6 +1,6 @@
{
"name": "tree-node",
- "version": "0.0.6",
+ "version": "0.0.7",
"description": "tree node",
"main": "index.js",
"scripts": {
@@ -23,5 +23,6 @@
},
"directories": {
"test": "test"
- }
+ },
+ "homepage": "https://github.com/brighthas/tree-node"
}

0 comments on commit 4504304

Please sign in to comment.