fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
6b71026
..
1686abd
100644
(file)
--- 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);