in js/tree.jquery.js [3025:3060]
JqTreeWidget.prototype._init = function() {
JqTreeWidget.__super__._init.call(this);
this.element = this.$el;
this.mouse_delay = 300;
this.is_initialized = false;
this.options.rtl = this._getRtlOption();
if (!this.options.closedIcon) {
this.options.closedIcon = this._getDefaultClosedIcon();
}
this.renderer = new ElementsRenderer(this);
if (SaveStateHandler != null) {
this.save_state_handler = new SaveStateHandler(this);
} else {
this.options.saveState = false;
}
if (SelectNodeHandler != null) {
this.select_node_handler = new SelectNodeHandler(this);
}
if (DragAndDropHandler != null) {
this.dnd_handler = new DragAndDropHandler(this);
} else {
this.options.dragAndDrop = false;
}
if (ScrollHandler != null) {
this.scroll_handler = new ScrollHandler(this);
}
if ((KeyHandler != null) && (SelectNodeHandler != null)) {
this.key_handler = new KeyHandler(this);
}
this._initData();
this.element.click($.proxy(this._click, this));
this.element.dblclick($.proxy(this._dblclick, this));
if (this.options.useContextMenu) {
return this.element.bind('contextmenu', $.proxy(this._contextmenu, this));
}
};