fix jshint spacing issues

This commit is contained in:
Sebastian McKenzie 2014-10-20 08:35:02 +11:00
parent e263757509
commit 73f65ae634
2 changed files with 10 additions and 4 deletions

View File

@ -130,7 +130,7 @@ File.prototype.generateUid = function (name) {
name = name.replace(/^[-0-9]+/, ""); name = name.replace(/^[-0-9]+/, "");
// camel case // camel case
name = name.replace(/[-_\s]+(.)?/g, function(match, c){ name = name.replace(/[-_\s]+(.)?/g, function (match, c) {
return c ? c.toUpperCase() : ""; return c ? c.toUpperCase() : "";
}); });

View File

@ -88,9 +88,15 @@ exports.XJSElement = {
var args = callExpr.arguments; var args = callExpr.arguments;
switch (children.length) { switch (children.length) {
case 0: break; case 0:
case 1: args.push(children[0]); break; break;
default: args.push(b.arrayExpression(children));
case 1:
args.push(children[0]);
break;
default:
args.push(b.arrayExpression(children));
} }
callExpr.loc = node.loc; callExpr.loc = node.loc;