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

Commit

Permalink
AUI-1633 - Build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mak committed Sep 21, 2014
1 parent 1aeb8ca commit f7121c3
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 14 deletions.
13 changes: 10 additions & 3 deletions build/aui-tree/aui-tree-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2350,15 +2350,22 @@ var TreeNodeTask = A.Component.create(
instance.eachParent(
function(parentNode) {
if (isTreeNodeTask(parentNode)) {
var hasUncheckedChild = false;
var parentHasUncheckedDescendants = false;

parentNode.eachChildren(function(child) {
if ((child !== instance) && !child.isChecked()) {
hasUncheckedChild = true;
parentHasUncheckedDescendants = true;
}
else {
var childHasUncheckedChild = child.get(CONTENT_BOX).hasClass(CSS_TREE_NODE_CHILD_UNCHECKED);

if (childHasUncheckedChild) {
parentHasUncheckedDescendants = true;
}
}
});

if (!hasUncheckedChild) {
if (!parentHasUncheckedDescendants) {
parentNode.get(CONTENT_BOX).removeClass(CSS_TREE_NODE_CHILD_UNCHECKED);
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/aui-tree/aui-tree-min.js

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions build/aui-tree/aui-tree-node-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1479,15 +1479,22 @@ var TreeNodeTask = A.Component.create(
instance.eachParent(
function(parentNode) {
if (isTreeNodeTask(parentNode)) {
var hasUncheckedChild = false;
var parentHasUncheckedDescendants = false;

parentNode.eachChildren(function(child) {
if ((child !== instance) && !child.isChecked()) {
hasUncheckedChild = true;
parentHasUncheckedDescendants = true;
}
else {
var childHasUncheckedChild = child.get(CONTENT_BOX).hasClass(CSS_TREE_NODE_CHILD_UNCHECKED);

if (childHasUncheckedChild) {
parentHasUncheckedDescendants = true;
}
}
});

if (!hasUncheckedChild) {
if (!parentHasUncheckedDescendants) {
parentNode.get(CONTENT_BOX).removeClass(CSS_TREE_NODE_CHILD_UNCHECKED);
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/aui-tree/aui-tree-node-min.js

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

13 changes: 10 additions & 3 deletions build/aui-tree/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1479,15 +1479,22 @@ var TreeNodeTask = A.Component.create(
instance.eachParent(
function(parentNode) {
if (isTreeNodeTask(parentNode)) {
var hasUncheckedChild = false;
var parentHasUncheckedDescendants = false;

parentNode.eachChildren(function(child) {
if ((child !== instance) && !child.isChecked()) {
hasUncheckedChild = true;
parentHasUncheckedDescendants = true;
}
else {
var childHasUncheckedChild = child.get(CONTENT_BOX).hasClass(CSS_TREE_NODE_CHILD_UNCHECKED);

if (childHasUncheckedChild) {
parentHasUncheckedDescendants = true;
}
}
});

if (!hasUncheckedChild) {
if (!parentHasUncheckedDescendants) {
parentNode.get(CONTENT_BOX).removeClass(CSS_TREE_NODE_CHILD_UNCHECKED);
}
}
Expand Down
13 changes: 10 additions & 3 deletions build/aui-tree/aui-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2350,15 +2350,22 @@ var TreeNodeTask = A.Component.create(
instance.eachParent(
function(parentNode) {
if (isTreeNodeTask(parentNode)) {
var hasUncheckedChild = false;
var parentHasUncheckedDescendants = false;

parentNode.eachChildren(function(child) {
if ((child !== instance) && !child.isChecked()) {
hasUncheckedChild = true;
parentHasUncheckedDescendants = true;
}
else {
var childHasUncheckedChild = child.get(CONTENT_BOX).hasClass(CSS_TREE_NODE_CHILD_UNCHECKED);

if (childHasUncheckedChild) {
parentHasUncheckedDescendants = true;
}
}
});

if (!hasUncheckedChild) {
if (!parentHasUncheckedDescendants) {
parentNode.get(CONTENT_BOX).removeClass(CSS_TREE_NODE_CHILD_UNCHECKED);
}
}
Expand Down

0 comments on commit f7121c3

Please sign in to comment.