change oncreatemenu path to object

This commit is contained in:
RobAley 2019-02-25 16:03:25 +00:00 committed by GitHub
parent b48f084cf5
commit 74272397b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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});