fix jshint spacing issues
This commit is contained in:
parent
e263757509
commit
73f65ae634
@ -130,7 +130,7 @@ File.prototype.generateUid = function (name) {
|
||||
name = name.replace(/^[-0-9]+/, "");
|
||||
|
||||
// camel case
|
||||
name = name.replace(/[-_\s]+(.)?/g, function(match, c){
|
||||
name = name.replace(/[-_\s]+(.)?/g, function (match, c) {
|
||||
return c ? c.toUpperCase() : "";
|
||||
});
|
||||
|
||||
|
||||
@ -88,9 +88,15 @@ exports.XJSElement = {
|
||||
var args = callExpr.arguments;
|
||||
|
||||
switch (children.length) {
|
||||
case 0: break;
|
||||
case 1: args.push(children[0]); break;
|
||||
default: args.push(b.arrayExpression(children));
|
||||
case 0:
|
||||
break;
|
||||
|
||||
case 1:
|
||||
args.push(children[0]);
|
||||
break;
|
||||
|
||||
default:
|
||||
args.push(b.arrayExpression(children));
|
||||
}
|
||||
|
||||
callExpr.loc = node.loc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user