simplify Node::isUserWhitespacable method
This commit is contained in:
parent
9a5f97d85b
commit
4ccc12b04d
@ -24,14 +24,7 @@ function Node(node, parent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Node.prototype.isUserWhitespacable = function () {
|
Node.prototype.isUserWhitespacable = function () {
|
||||||
var parent = this.parent;
|
return t.isUserWhitespacable(node);
|
||||||
var node = this.node;
|
|
||||||
|
|
||||||
if (t.isUserWhitespacable(node)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Node.prototype.needsWhitespace = function (type) {
|
Node.prototype.needsWhitespace = function (type) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user