Fixed the SonarQube Code smells having Rule 'Functions, methods and lambdas should not have too many parameters'.

This commit is contained in:
Khushboo Vashi
2020-07-03 14:24:54 +05:30
committed by Akshay Joshi
parent 3d5a2046c4
commit b5f0190799
19 changed files with 69 additions and 35 deletions

View File

@@ -889,7 +889,7 @@ var Cell = Backgrid.Cell = Backbone.View.extend({
$el.empty();
var model = this.model;
var columnName = this.column.get("name");
var value = this.formatter.fromRaw(model.get(columnName), model);
var value = _.escape(this.formatter.fromRaw(model.get(columnName), model));
$el.append($(`<span class="display-text" title="${value}">${value}</span>`));
$el.addClass(columnName);
this.updateStateClassesMaybe();