X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e7d1ef97b3d612aaa64a4bc0742b7ede49e807d4..44630cb8d3f935066fa308fad8a23108c79cdae0:/src/smartxml/smartxml.js?ds=sidebyside diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 01a0a2a..0b12620 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -82,7 +82,7 @@ $.extend(DocumentNode.prototype, { }, sameNode: function(otherNode) { - return otherNode && this.nativeNode === otherNode.nativeNode; + return !!(otherNode) && this.nativeNode === otherNode.nativeNode; }, parent: function() {