Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
less return points
Browse files Browse the repository at this point in the history
  • Loading branch information
archiloque committed Apr 28, 2012
1 parent e592da8 commit 29a5426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions jquery.compactWall.js
Expand Up @@ -98,7 +98,6 @@
(slots[slotIndex + 1][2] + block[0]),
slots[slotIndex + 1][2]
]);
return r;
} else {
var availableWidth = slot[3] - block[1];
if (availableWidth >= minBlockWidth) {
Expand All @@ -108,12 +107,11 @@
block[0],
availableWidth
]);
return r;
} else {
r.splice(slotIndex, 1);
return r;
}
}
return r;
}

function smallerNarrower(slots, slotIndex, slot, block) {
Expand Down Expand Up @@ -141,7 +139,6 @@
slots[slotIndex + 1][3]
]
);
return r;
} else {
// current slot is not the first one
// increase the size of next one
Expand All @@ -153,7 +150,6 @@
slots[slotIndex + 1][3]
]
);
return r;
}
} else {
var availableWidth = (slot[3] - block[1]);
Expand All @@ -170,7 +166,6 @@
block[0],
availableWidth
]);
return r;
} else {
r.splice(slotIndex, 1,
[
Expand All @@ -179,9 +174,9 @@
(slot[2] - block[0]),
slot[3]
]);
return r;
}
}
return r;
}

function smallerSameWidth(slots, slotIndex, slot, block) {
Expand Down
2 changes: 1 addition & 1 deletion jquery.compactWall.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29a5426

Please sign in to comment.