eslint fixes
This commit is contained in:
parent
e98837082e
commit
87ce5c1a8e
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true
|
||||
"browser": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"parserOptions": {
|
||||
|
|
|
@ -162,7 +162,7 @@ div#togglebuttons>button {
|
|||
autoColumnsDefinitions: function(definitions){
|
||||
definitions.forEach((column) => {
|
||||
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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue