The 'onExapnd' event handler takes 'node' parameter value, which indicates the expanding node. If you want to retrieve the node data with 'target' property, please call 'getData' method instead.
$('#tt').tree({
onExpand: function(node){
var data = $(this).tree('getData', node.target);
console.log(data)
}
})