PDA

View Full Version : incorrect JSHint error



jptrainor
5 Sep 2012, 5:33 AM
The follow renderer implementation on a Ext.data.column.Column reports an incorrect JSHint error

if (record.data.Entry === "ASpecialCaseField") {
var s = value.toString().split(" ");
return "{0} {1} {2}".format(s[1], s[2], s[3]);
} <<<<<< incorrect error flagged here: "expected and identifier and instead saw "}"
else {
return value;
}