2012-02-06 42 views
2

jsTree hover_node回調不會返回原始('mouseenter')事件。 我想從事件中獲取鼠標位置(Client.Y)。jsTree,hover_node,事件

任何建議,不涉及黑客攻擊?

感謝, BBZ

回答

0

通過我想過書面方式插件的文檔會後。

$.jstree.plugin('custom-plugin', { 
    _fn: { 
    hover_node: function() { 
     console.log(arguments); 
     this.__call_old(); 
    } 
    } 
}); 

這可能是一個開始(供將來參考)。 但是,通過的參數是一個節點而不是事件。

最後我想到了綁定到mouseenter.jstree event。 這給了我原來的事件。