summaryrefslogtreecommitdiff
path: root/js/lib/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/node.js')
-rw-r--r--js/lib/node.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/lib/node.js b/js/lib/node.js
index 0c5bcee..12bb89e 100644
--- a/js/lib/node.js
+++ b/js/lib/node.js
@@ -89,6 +89,14 @@ Node.prototype.isContainer = function() {
return isContainer(this);
};
+Node.prototype.getType = function() {
+ return this.t;
+}
+
+Node.prototype.setType = function(newtype) {
+ this.t = newtype;
+}
+
Node.prototype.appendChild = function(child) {
child.unlink();
child.parent = this;