From: Aleksander Ɓukasz Date: Thu, 3 Jul 2014 13:48:57 +0000 (+0200) Subject: smartxml: RangeFragment.hasSameBoundries X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/6760e2c88e6b8603e14cfe249e05f667909706ce?ds=inline smartxml: RangeFragment.hasSameBoundries --- diff --git a/src/smartxml/fragments.js b/src/smartxml/fragments.js index b1befdf..d932592 100644 --- a/src/smartxml/fragments.js +++ b/src/smartxml/fragments.js @@ -79,6 +79,9 @@ $.extend(RangeFragment.prototype, { hasSiblingBoundries: function() { return this.isValid() && this.startNode.isSiblingOf(this.endNode); }, + hasSameBoundries: function() { + return this.isValid() && this.startNode.sameNode(this.endNode); + }, boundriesSiblingParents: function() { return this.startNode.document.getSiblingParents({ node1: this.startNode,