浏览代码

Changed variables to const per build tool message

jbarrineau06 5 年之前
父节点
当前提交
a69406cc5d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

+ 2 - 2
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -617,8 +617,8 @@ BootstrapTable.prototype.onMultipleSort = function () {
       const order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1
       const order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1
       let aa = a[fieldName]
       let aa = a[fieldName]
       let bb = b[fieldName]
       let bb = b[fieldName]
-      let value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
-      let value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
+      const value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
+      const value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
 
 
       if (value1 !== undefined && value2 !== undefined) {
       if (value1 !== undefined && value2 !== undefined) {
         arr1.push(order * value1)
         arr1.push(order * value1)