X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a4e2af35996896240356ad8ca4c7b6003d4b9ff3..ba1e24e73cbeef44c1a08c8d225cc12923f3dfd6:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 6b71026..1686abd 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -9,6 +9,9 @@ var TEXT_NODE = Node.TEXT_NODE; var DocumentNode = function(nativeNode, document) { + if(!document) { + throw new Error('undefined document for a node'); + } this.document = document; this.nativeNode = nativeNode; this._$ = $(nativeNode);