diff options
author | John MacFarlane <[email protected]> | 2015-01-15 12:47:04 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2015-01-15 12:47:04 -0800 |
commit | e44eb21a558f6b80c0c038602baf77223709f1d9 (patch) | |
tree | cf380efe004fca605af89a01e7896eb4697711ea /js/lib/node.js | |
parent | 666c2be2ffdf865644fec34ac13e1ebd2e4d9fc8 (diff) |
Removed setType(), replaced getType() with type().
Diffstat (limited to 'js/lib/node.js')
-rw-r--r-- | js/lib/node.js | 8 |
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(); |