summaryrefslogtreecommitdiff
path: root/js/lib/node.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:47:04 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:47:04 -0800
commite44eb21a558f6b80c0c038602baf77223709f1d9 (patch)
treecf380efe004fca605af89a01e7896eb4697711ea /js/lib/node.js
parent666c2be2ffdf865644fec34ac13e1ebd2e4d9fc8 (diff)
Removed setType(), replaced getType() with type().
Diffstat (limited to 'js/lib/node.js')
-rw-r--r--js/lib/node.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/js/lib/node.js b/js/lib/node.js
index 12bb89e..65f3814 100644
--- a/js/lib/node.js
+++ b/js/lib/node.js
@@ -89,13 +89,9 @@ Node.prototype.isContainer = function() {
return isContainer(this);
};
-Node.prototype.getType = function() {
+Node.prototype.type = function() {
return this.t;
-}
-
-Node.prototype.setType = function(newtype) {
- this.t = newtype;
-}
+};
Node.prototype.appendChild = function(child) {
child.unlink();