fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: inform user about errors that occured during document transaction
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.js
diff --git
a/src/wlxml/wlxml.js
b/src/wlxml/wlxml.js
index
4f6e356
..
034312d
100644
(file)
--- a/
src/wlxml/wlxml.js
+++ b/
src/wlxml/wlxml.js
@@
-343,14
+343,17
@@
var wlxmlClasses = {
return {
return {
- WLXMLDocumentFromXML: function(xml, options) {
+ WLXMLDocumentFromXML: function(xml, options
, Factory
) {
options = _.extend({wlxmlClasses: wlxmlClasses}, options);
options = _.extend({wlxmlClasses: wlxmlClasses}, options);
- return new WLXMLDocument(xml, options);
+ Factory = Factory || WLXMLDocument;
+ return new Factory(xml, options);
},
WLXMLElementNodeFromXML: function(xml) {
return this.WLXMLDocumentFromXML(xml).root;
},
WLXMLElementNodeFromXML: function(xml) {
return this.WLXMLDocumentFromXML(xml).root;
- }
+ },
+
+ WLXMLDocument: WLXMLDocument
};
});
\ No newline at end of file
};
});
\ No newline at end of file