X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cee08f0b14be951a31544ae708b2a92f6255e61a..87e029e74fe3bc64c7859490988da52e84d538e0:/src/wlxml/extensions/list/list.js?ds=sidebyside diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 6cac91b..02fe08d 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -65,10 +65,10 @@ extension.document.transformations.createList = { }); }, getChangeRoot: function() { - return this.args.node1.parent(); + return this.args[0].node1.parent(); }, isAllowed: function() { - return this.args.node1.parent().sameNode(this.args.node2.parent()); + return this.args[0].node1.parent().sameNode(this.args[0].node2.parent()); } }; @@ -140,8 +140,8 @@ extension.document.transformations.extractItems = { return true; }, isAllowed: function() { - var parent = this.args.nodel1.parent(); - return parent.is('list') && parent.sameNode(this.args.node2.parent()); + var parent = this.args[0].nodel1.parent(); + return parent.is('list') && parent.sameNode(this.args[0].node2.parent()); } };