From 74553efa304f32bed43f8b5cbbee0116640e2c36 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Fri, 21 Feb 2014 14:35:55 -0800 Subject: [PATCH] Binary-heap: avoid capitalized names for non-classes --- packages/binary-heap/max-heap.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/binary-heap/max-heap.js b/packages/binary-heap/max-heap.js index e8a2b0445a..891e9b3771 100644 --- a/packages/binary-heap/max-heap.js +++ b/packages/binary-heap/max-heap.js @@ -108,14 +108,14 @@ _.extend(MaxHeap.prototype, { _swap: function (idxA, idxB) { var self = this; - var A = self._heap[idxA]; - var B = self._heap[idxB]; + var recA = self._heap[idxA]; + var recB = self._heap[idxB]; - self._heapIdx.set(A.id, idxB); - self._heapIdx.set(B.id, idxA); + self._heapIdx.set(recA.id, idxB); + self._heapIdx.set(recB.id, idxA); - self._heap[idxA] = B; - self._heap[idxB] = A; + self._heap[idxA] = recB; + self._heap[idxB] = recA; }, get: function (id) {