fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: edumed exercises - translation fixes
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.js
diff --git
a/src/wlxml/wlxml.js
b/src/wlxml/wlxml.js
index
cb43f07
..
40ab196
100644
(file)
--- a/
src/wlxml/wlxml.js
+++ b/
src/wlxml/wlxml.js
@@
-106,6
+106,16
@@
$.extend(WLXMLElementNode.prototype, WLXMLDocumentNodeMethods, smartxml.ElementN
return child.is(query);
}.bind(this));
},
return child.is(query);
}.bind(this));
},
+ find: function(query) {
+ var doc = this.document;
+ return this._$.find('*')
+ .map(function() {
+ return doc.createDocumentNode(this);
+ })
+ .filter(function() {
+ return this.is(query);
+ });
+ },
_getXMLDOMToDump: function() {
var DOM = this._$.clone(true, true),
_getXMLDOMToDump: function() {
var DOM = this._$.clone(true, true),