Skip to content

Commit

Permalink
fixed destroy issue - close #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed May 4, 2016
1 parent ef48a3f commit 96dc574
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,9 @@
.children(".jstree-children").stop(true, true)
.slideDown(animation, function () {
this.style.display = "";
t.trigger("after_open", { "node" : obj });
if (t.element) {
t.trigger("after_open", { "node" : obj });
}
});
}
}
Expand Down Expand Up @@ -2682,7 +2684,9 @@
.children(".jstree-children").stop(true, true).slideUp(animation, function () {
this.style.display = "";
d.children('.jstree-children').remove();
t.trigger("after_close", { "node" : obj });
if (t.element) {
t.trigger("after_close", { "node" : obj });
}
});
}
}
Expand Down
Loading

0 comments on commit 96dc574

Please sign in to comment.