From e44eb21a558f6b80c0c038602baf77223709f1d9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 12:47:04 -0800 Subject: Removed setType(), replaced getType() with type(). --- js/lib/node.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'js/lib/node.js') 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(); -- cgit v1.2.3