Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #16 from rubylibre/master
Browse files Browse the repository at this point in the history
Fix issue #14
  • Loading branch information
DrewDahlman committed Aug 30, 2013
2 parents 5b6a685 + f1e0c13 commit 5eaf7b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 3 additions & 3 deletions mason.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
for (var i = 0; i < settings.promoted.length; i++) {
if ($sel.hasClass(settings.promoted[i][2])) {
ranSize = [settings.promoted[i][0], settings.promoted[i][1]];
ran = ((settings.sizes.length - 1) - 1) + i;
ran = (settings.sizes.length - settings.promoted.length) + i;
}
}

Expand Down Expand Up @@ -167,8 +167,8 @@
var s = parseFloat($sel.data('size'));

// now determine size of the element based on block dimensions and total area
var h = settings.sizes[s-1][1];
var w = settings.sizes[s-1][0];
var h = settings.sizes[s][1];
var w = settings.sizes[s][0];
var a = h * w;

// Loop through the elements area and based on the size
Expand Down
9 changes: 1 addition & 8 deletions mason.min.js

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

0 comments on commit 5eaf7b4

Please sign in to comment.