From: Aleksander Ɓukasz Date: Mon, 3 Feb 2014 08:28:52 +0000 (+0100) Subject: smartxml: fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/950632a02425edb79343f6fdeb5b2d7f0a5854d2 smartxml: fix --- diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index d085742..9227e0f 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -66,7 +66,7 @@ $.extend(DocumentNode.prototype, { } }); - if(idx !== 'undefined') { + if(idx !== undefined) { nodePath = nodePath.slice(0, idx); } toret = nodePath.map(function(node) {return node.getIndex(); });