eslint fixes
This commit is contained in:
parent
e98837082e
commit
87ce5c1a8e
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true
|
"browser": true,
|
||||||
|
"es6": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
|
|
@ -162,7 +162,7 @@ div#togglebuttons>button {
|
||||||
autoColumnsDefinitions: function(definitions){
|
autoColumnsDefinitions: function(definitions){
|
||||||
definitions.forEach((column) => {
|
definitions.forEach((column) => {
|
||||||
if (column.field == "band") {
|
if (column.field == "band") {
|
||||||
column.sorter = function(a, b, aRow, bRow, column, dir, sorterParams) {
|
column.sorter = function(a, b) {
|
||||||
return parseFloat(new Measures().from(a).to('m')) - parseFloat(new Measures().from(b).to('m'));
|
return parseFloat(new Measures().from(a).to('m')) - parseFloat(new Measures().from(b).to('m'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue