From 74272397b4c310903978e99f3936a4905253d812 Mon Sep 17 00:00:00 2001 From: RobAley Date: Mon, 25 Feb 2019 16:03:25 +0000 Subject: [PATCH] change oncreatemenu path to object --- src/js/treemode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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});