fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
accessing parents
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
documentElement.js
diff --git
a/modules/documentCanvas/canvas/documentElement.js
b/modules/documentCanvas/canvas/documentElement.js
index
2225e0c
..
cd94759
100644
(file)
--- a/
modules/documentCanvas/canvas/documentElement.js
+++ b/
modules/documentCanvas/canvas/documentElement.js
@@
-32,6
+32,9
@@
$.extend(DocumentElement.prototype, {
});
return toret;
},
+ parent: function() {
+ return documentElementFromHTMLElement(this.$element.parent()[0]);
+ },
sameNode: function(other) {
return other && (typeof other === typeof this) && other.$element[0] === this.$element[0];