From: Aleksander Ɓukasz Date: Sat, 14 Dec 2013 15:36:25 +0000 (+0100) Subject: wlxml: fix list extension's document methods definition X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/b43c71cd14fbc5e3623cd7c2150d1a0c589ad26c wlxml: fix list extension's document methods definition This now defines areItemsOfSameList method correctly --- diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 8cfecc2..6d7b251 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -3,7 +3,7 @@ define(function(require) { 'use strict'; var _ = require('libs/underscore'), - extension = {document: {transformations: {}}, wlxmlClass: {list: {methods: {}}}}; + extension = {document: {transformations: {}, methods: {}}, wlxmlClass: {list: {methods: {}}}}; extension.wlxmlClass.list.methods = { @@ -22,7 +22,7 @@ extension.wlxmlClass.list.methods = { } }; -extension.documentMethods = { +extension.document.methods = { areItemsOfSameList: function(params) { return params.node1.parent().sameNode(params.node2.parent()) && params.node2.parent().is('list'); }