X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/src/widgets/tree/TreeNodeUI.js?ds=inline
diff --git a/src/widgets/tree/TreeNodeUI.js b/src/widgets/tree/TreeNodeUI.js
index 1be1da66..46ba4ef0 100644
--- a/src/widgets/tree/TreeNodeUI.js
+++ b/src/widgets/tree/TreeNodeUI.js
@@ -1,5 +1,5 @@
/*!
- * Ext JS Library 3.0.3
+ * Ext JS Library 3.1.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
@@ -54,9 +54,9 @@ Ext.tree.TreeNodeUI.prototype = {
// private
onDisableChange : function(node, state){
this.disabled = state;
- if (this.checkbox) {
- this.checkbox.disabled = state;
- }
+ if (this.checkbox) {
+ this.checkbox.disabled = state;
+ }
if(state){
this.addClass("x-tree-node-disabled");
}else{
@@ -241,8 +241,8 @@ Ext.tree.TreeNodeUI.prototype = {
// private
onCheckChange : function(){
var checked = this.checkbox.checked;
- // fix for IE6
- this.checkbox.defaultChecked = checked;
+ // fix for IE6
+ this.checkbox.defaultChecked = checked;
this.node.attributes.checked = checked;
this.fireEvent('checkchange', this.node, checked);
},
@@ -369,7 +369,10 @@ Ext.tree.TreeNodeUI.prototype = {
return this.ctNode;
},
- // private
+/**
+ * Returns the element which encapsulates this node.
+ * @return {HtmlElement} The DOM element. The default implementation uses a <li>
.
+ */
getEl : function(){
return this.wrap;
},
@@ -432,10 +435,10 @@ Ext.tree.TreeNodeUI.prototype = {
// add some indent caching, this helps performance when rendering a large tree
this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
- var cb = typeof a.checked == 'boolean';
-
- var href = a.href ? a.href : Ext.isGecko ? "" : "#";
- var buf = ['