fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
editor: fix requirejs paths so that test will work again
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
b673865
..
b449d82
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-299,7
+299,7
@@
$.extend(TextNode.prototype, {
var parseXML = function(xml) {
var toret = $($.trim(xml));
- if(
!toret.length
) {
+ if(
toret.length !== 1
) {
throw new Error('Unable to parse XML: ' + xml);
}
return toret[0];