浏览代码

Refactor variable names

boeserwolf 5 年之前
父节点
当前提交
1a065ff351
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      client/components/boards/boardsList.js

+ 3 - 3
client/components/boards/boardsList.js

@@ -49,9 +49,9 @@ BlazeComponent.extendComponent({
       stop(evt, ui) {
         // To attribute the new index number, we need to get the DOM element
         // of the previous and the following card -- if any.
-        const prevCardDom = ui.item.prev('.js-board').get(0);
-        const nextCardDom = ui.item.next('.js-board').get(0);
-        const sortIndex = calculateIndex(prevCardDom, nextCardDom, 1);
+        const prevBoardDom = ui.item.prev('.js-board').get(0);
+        const nextBoardBom = ui.item.next('.js-board').get(0);
+        const sortIndex = calculateIndex(prevBoardDom, nextBoardBom, 1);
 
         const boardDomElement = ui.item.get(0);
         const board = Blaze.getData(boardDomElement);