From 2ecc11ea86b1d220f8d089a1680307a35437f6ef Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 13:07:31 -0800 Subject: Renamed .t to ._type to mark it as "hidden." --- js/lib/node.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/lib/node.js b/js/lib/node.js index 65f3814..9b77e2f 100644 --- a/js/lib/node.js +++ b/js/lib/node.js @@ -1,7 +1,7 @@ "use strict"; function isContainer(node) { - switch (node.t) { + switch (node._type) { case 'Document': case 'BlockQuote': case 'List': @@ -63,7 +63,7 @@ var NodeWalker = function(root) { }; var Node = function(nodeType, sourcepos) { - this.t = nodeType; + this._type = nodeType; this.parent = null; this.firstChild = null; this.lastChild = null; @@ -90,7 +90,7 @@ Node.prototype.isContainer = function() { }; Node.prototype.type = function() { - return this.t; + return this._type; }; Node.prototype.appendChild = function(child) { @@ -221,7 +221,7 @@ module.exports = Node; var event; while (event = walker.next()) { - console.log(event.entering, event.node.t); + console.log(event.entering, event.node.type()); } */ -- cgit v1.2.3