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

Commit

Permalink
AUI-989 - Build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mak committed Oct 28, 2013
1 parent f58a4d8 commit 367a47c
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 27 deletions.
16 changes: 13 additions & 3 deletions build/aui-tree/aui-tree-data-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ TreeData.ATTRS = {
};

A.mix(TreeData.prototype, {
_indexPrimed: false,

childrenLength: 0,

/**
Expand Down Expand Up @@ -143,6 +145,10 @@ A.mix(TreeData.prototype, {
getNodeById: function(uid) {
var instance = this;

if (!instance._indexPrimed) {
instance.refreshIndex();
}

return instance.get(INDEX)[uid];
},

Expand Down Expand Up @@ -217,7 +223,7 @@ A.mix(TreeData.prototype, {
if (moved) {
var output = instance.getEventOutputMap(node);

if (!oldParent.get('children').length) {
if (!oldParent.get(CHILDREN).length) {
oldParent.collapse();
oldParent.hideHitArea();
}
Expand Down Expand Up @@ -283,6 +289,8 @@ A.mix(TreeData.prototype, {
var instance = this;

if (index) {
instance._indexPrimed = true;

instance.set(INDEX, index);
}
},
Expand Down Expand Up @@ -348,7 +356,7 @@ A.mix(TreeData.prototype, {
/**
* Unselect all children of the TreeData.
*
* @method selectAll
* @method unselectAll
*/
unselectAll: function() {
var instance = this;
Expand Down Expand Up @@ -379,7 +387,7 @@ A.mix(TreeData.prototype, {
/**
* Loop each parent node and execute the <code>fn</code> callback.
*
* @method eachChildren
* @method eachParent
* @param {function} fn callback
*/
eachParent: function(fn) {
Expand Down Expand Up @@ -834,6 +842,8 @@ A.mix(TreeData.prototype, {
}
}

instance.registerNode(node);

if (hasOwnerTree) {
ownerTree.registerNode(node);
}
Expand Down
2 changes: 1 addition & 1 deletion build/aui-tree/aui-tree-data-min.js

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

16 changes: 13 additions & 3 deletions build/aui-tree/aui-tree-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ TreeData.ATTRS = {
};

A.mix(TreeData.prototype, {
_indexPrimed: false,

childrenLength: 0,

/**
Expand Down Expand Up @@ -143,6 +145,10 @@ A.mix(TreeData.prototype, {
getNodeById: function(uid) {
var instance = this;

if (!instance._indexPrimed) {
instance.refreshIndex();
}

return instance.get(INDEX)[uid];
},

Expand Down Expand Up @@ -217,7 +223,7 @@ A.mix(TreeData.prototype, {
if (moved) {
var output = instance.getEventOutputMap(node);

if (!oldParent.get('children').length) {
if (!oldParent.get(CHILDREN).length) {
oldParent.collapse();
oldParent.hideHitArea();
}
Expand Down Expand Up @@ -283,6 +289,8 @@ A.mix(TreeData.prototype, {
var instance = this;

if (index) {
instance._indexPrimed = true;

instance.set(INDEX, index);
}
},
Expand Down Expand Up @@ -348,7 +356,7 @@ A.mix(TreeData.prototype, {
/**
* Unselect all children of the TreeData.
*
* @method selectAll
* @method unselectAll
*/
unselectAll: function() {
var instance = this;
Expand Down Expand Up @@ -379,7 +387,7 @@ A.mix(TreeData.prototype, {
/**
* Loop each parent node and execute the <code>fn</code> callback.
*
* @method eachChildren
* @method eachParent
* @param {function} fn callback
*/
eachParent: function(fn) {
Expand Down Expand Up @@ -834,6 +842,8 @@ A.mix(TreeData.prototype, {
}
}

instance.registerNode(node);

if (hasOwnerTree) {
ownerTree.registerNode(node);
}
Expand Down
26 changes: 18 additions & 8 deletions build/aui-tree/aui-tree-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ TreeData.ATTRS = {
};

A.mix(TreeData.prototype, {
_indexPrimed: false,

childrenLength: 0,

/**
Expand Down Expand Up @@ -143,6 +145,10 @@ A.mix(TreeData.prototype, {
getNodeById: function(uid) {
var instance = this;

if (!instance._indexPrimed) {
instance.refreshIndex();
}

return instance.get(INDEX)[uid];
},

Expand Down Expand Up @@ -217,7 +223,7 @@ A.mix(TreeData.prototype, {
if (moved) {
var output = instance.getEventOutputMap(node);

if (!oldParent.get('children').length) {
if (!oldParent.get(CHILDREN).length) {
oldParent.collapse();
oldParent.hideHitArea();
}
Expand Down Expand Up @@ -283,6 +289,8 @@ A.mix(TreeData.prototype, {
var instance = this;

if (index) {
instance._indexPrimed = true;

instance.set(INDEX, index);
}
},
Expand Down Expand Up @@ -348,7 +356,7 @@ A.mix(TreeData.prototype, {
/**
* Unselect all children of the TreeData.
*
* @method selectAll
* @method unselectAll
*/
unselectAll: function() {
var instance = this;
Expand Down Expand Up @@ -379,7 +387,7 @@ A.mix(TreeData.prototype, {
/**
* Loop each parent node and execute the <code>fn</code> callback.
*
* @method eachChildren
* @method eachParent
* @param {function} fn callback
*/
eachParent: function(fn) {
Expand Down Expand Up @@ -834,6 +842,8 @@ A.mix(TreeData.prototype, {
}
}

instance.registerNode(node);

if (hasOwnerTree) {
ownerTree.registerNode(node);
}
Expand All @@ -853,7 +863,7 @@ A.mix(TreeData.prototype, {

A.TreeData = TreeData;

}, '@VERSION@' ,{skinnable:false, requires:['aui-base','aui-task-manager']});
}, '@VERSION@' ,{requires:['aui-base','aui-task-manager'], skinnable:false});
AUI.add('aui-tree-node', function(A) {
/**
* The TreeNode Utility
Expand Down Expand Up @@ -2519,7 +2529,7 @@ A.TreeNode.nodeTypes = {
task: A.TreeNodeTask
};

}, '@VERSION@' ,{skinnable:false, requires:['aui-tree-data','aui-tree-io','aui-tree-paginator','json','querystring-stringify']});
}, '@VERSION@' ,{requires:['aui-tree-data','aui-tree-io','aui-tree-paginator','json','querystring-stringify'], skinnable:false});
AUI.add('aui-tree-paginator', function(A) {
var Lang = A.Lang,
isObject = Lang.isObject,
Expand Down Expand Up @@ -2731,7 +2741,7 @@ TreeViewPaginator.prototype = {

A.TreeViewPaginator = TreeViewPaginator;

}, '@VERSION@' ,{skinnable:false, requires:['aui-base']});
}, '@VERSION@' ,{requires:['aui-base'], skinnable:false});
AUI.add('aui-tree-view', function(A) {
/**
* The TreeView Utility
Expand Down Expand Up @@ -3926,8 +3936,8 @@ TreeViewIO.prototype = {

A.TreeViewIO = TreeViewIO;

}, '@VERSION@' ,{skinnable:false, requires:['aui-io','json']});
}, '@VERSION@' ,{requires:['aui-io','json'], skinnable:false});


AUI.add('aui-tree', function(A){}, '@VERSION@' ,{use:['aui-tree-data', 'aui-tree-node', 'aui-tree-io', 'aui-tree-paginator', 'aui-tree-view'], skinnable:true});
AUI.add('aui-tree', function(A){}, '@VERSION@' ,{skinnable:true, use:['aui-tree-data', 'aui-tree-node', 'aui-tree-io', 'aui-tree-paginator', 'aui-tree-view']});

Loading

0 comments on commit 367a47c

Please sign in to comment.