allow XJSElement and SequenceExpression to be user whitespacable

This commit is contained in:
Sebastian McKenzie
2014-11-14 00:53:45 +11:00
parent 2b458ec2d4
commit b1fe449b0d
2 changed files with 5 additions and 7 deletions

View File

@@ -24,17 +24,14 @@ function Node(node, parent) {
}
Node.prototype.isUserWhitespacable = function () {
//var parent = this.parent;
var parent = this.parent;
var node = this.node;
if (t.isUserWhitespacable(node)) {
if (t.isUserWhitespacable(node) ||
t.isSequenceExpression(parent)) {
return true;
}
//if (t.isArrayExpression(parent)) {
// return true;
//}
return false;
};