Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
AUI-1320 Revert "AUI-950 TreeView Tasks IO Nodes are unable to expand…
Browse files Browse the repository at this point in the history
… and reveal their children"

This reverts commit 71b9462.

Conflicts:
	src/aui-tree/js/aui-tree-node.js

AUI-950 was fixed by AUI-1014. Since AUI-950 causes AUI-1320, and was never affecting master nor master-deprecated, we should revert this commit everywhere.
  • Loading branch information
Jonathan Mak committed May 29, 2014
1 parent 185feb3 commit 0eac110
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/aui-tree/js/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,6 @@ var TreeNodeIO = A.Component.create({
var instance = this;

var cache = instance.get(CACHE);
var children = instance.get(CHILDREN);
var io = instance.get(IO);
var loaded = instance.get(LOADED);
var loading = instance.get(LOADING);
Expand All @@ -1248,7 +1247,7 @@ var TreeNodeIO = A.Component.create({
instance.set(LOADED, false);
}

if (io && !loaded && !loading && !children.length && !instance.isLeaf()) {
if (io && !loaded && !loading && !this.hasChildNodes() && !instance.isLeaf()) {
if (!cache) {
// remove all children to reload
instance.empty();
Expand Down

0 comments on commit 0eac110

Please sign in to comment.