Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit d2e49f5

Browse files
committed
Copy CSS class to inner trees
Copy class of main tree element to the inner tree elements
1 parent 2690fa0 commit d2e49f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

angular.tree.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454

5555
childNode.appendChild(wrapperEl);
5656
}
57-
58-
childNode.appendChild(document.createElement('UL'));
57+
58+
var ulEl = document.createElement('UL');
59+
ulEl.className = treeElem.className;
60+
childNode.appendChild(ulEl);
5961

6062
itemTemplate = angular.element(childNode);
6163
itemTemplate.addClass('ng-tree-node');

0 commit comments

Comments
 (0)