simplify Node::isUserWhitespacable method

This commit is contained in:
Sebastian McKenzie 2014-11-23 18:46:49 +11:00
parent 9a5f97d85b
commit 4ccc12b04d

View File

@ -24,14 +24,7 @@ function Node(node, parent) {
}
Node.prototype.isUserWhitespacable = function () {
var parent = this.parent;
var node = this.node;
if (t.isUserWhitespacable(node)) {
return true;
}
return false;
return t.isUserWhitespacable(node);
};
Node.prototype.needsWhitespace = function (type) {