Skip to content

Commit

Permalink
Loaded.jstree event handler not always called ezraroi#111
Browse files Browse the repository at this point in the history
Removed timeout around call to manageEvents function.
  • Loading branch information
Edminsson committed Sep 14, 2017
1 parent 0864dd4 commit acc0b14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions dist/ngJsTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@

scope.init = function () {
scope.tree.jstree(config);
$timeout(function () {
manageEvents(scope, elm, attrs);
});
manageEvents(scope, elm, attrs);
};

nodesWatcher.onChanged = function (node) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ngJsTree.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions ngJsTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@

scope.init = function () {
scope.tree.jstree(config);
$timeout(function () {
manageEvents(scope, elm, attrs);
});
manageEvents(scope, elm, attrs);
};

nodesWatcher.onChanged = function (node) {
Expand Down

0 comments on commit acc0b14

Please sign in to comment.