a visit from the jshint police
This commit is contained in:
parent
44b15422a0
commit
a3af2a21cf
@ -17,7 +17,7 @@ if(typeof events.EventEmitter.prototype.once !== 'function') {
|
|||||||
// uses comma separator so won't work for types like box that use
|
// uses comma separator so won't work for types like box that use
|
||||||
// a different array separator.
|
// a different array separator.
|
||||||
function arrayString(val) {
|
function arrayString(val) {
|
||||||
var result = '{'
|
var result = '{';
|
||||||
for (var i = 0 ; i < val.length; i++) {
|
for (var i = 0 ; i < val.length; i++) {
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
result = result + ',';
|
result = result + ',';
|
||||||
@ -31,7 +31,7 @@ function arrayString(val) {
|
|||||||
result = result + arrayString(val[i]);
|
result = result + arrayString(val[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
result = result +
|
result = result +
|
||||||
(val[i] === null ? 'NULL' : JSON.stringify(val[i]));
|
(val[i] === null ? 'NULL' : JSON.stringify(val[i]));
|
||||||
}
|
}
|
||||||
result = result + '}';
|
result = result + '}';
|
||||||
@ -50,7 +50,7 @@ var prepareValue = function(val) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (Array.isArray(val)) {
|
if (Array.isArray(val)) {
|
||||||
return arrayString(val);
|
return arrayString(val);
|
||||||
}
|
}
|
||||||
return val === null ? null : val.toString();
|
return val === null ? null : val.toString();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user