fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wlxml: getParent/isInside takes context roots into account
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.js
diff --git
a/src/wlxml/wlxml.js
b/src/wlxml/wlxml.js
index
c38810d
..
df93b3e
100644
(file)
--- a/
src/wlxml/wlxml.js
+++ b/
src/wlxml/wlxml.js
@@
-24,9
+24,10
@@
var WLXMLDocumentNodeMethods = {
me.concat(this.parents()).some(function(node) {
if(node.is(query)) {
toret = node;
- return true;
}
- });
+ return !!toret || (!node.sameNode(this) && node.isContextRoot());
+ }.bind(this));
+
return toret;
},
isContextRoot: function() {