diff --git a/src/js/treemode.js b/src/js/treemode.js index fe88dc0..2122682 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -1695,7 +1695,7 @@ treemode.showContextMenu = function (anchor, onClose) { }); if (this.editor.options.onCreateMenu) { - items = this.editor.options.onCreateMenu(items, node.getPath()); + items = this.editor.options.onCreateMenu(items, { path : node.getPath() }); } var menu = new ContextMenu(items, {close: onClose});