Skip to content

Commit

Permalink
oncomplete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pihlström committed Sep 17, 2013
1 parent 11f56ab commit 67674d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,13 @@
jQuery Nested plugin for a gap free, multi column grid layout experience.
<br>Demo: [http://suprb.com/apps/nested/](http://suprb.com/apps/nested/)

#### Changelog

- **1.01**
Fixed bug when first element was not rendered

- **1.0**
Initial release

#### Contributor

[Jonas Blomdin](http://github.com/jonasblomdin/)

#### Compare the result

Nested to the left and Grid-A-Licious, Masonry to the right.
Nested to the left and Grid-A-Licious/Masonry to the right.

!["compare"](https://dl.dropbox.com/u/35476/compare.jpg)

11 changes: 7 additions & 4 deletions jquery.nested.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* jQuery Nested v1.01
* jQuery Nested v1.02
*
* For a (total) gap free, multi column, grid layout experience.
* http://suprb.com/apps/nested/
Expand Down Expand Up @@ -417,7 +417,7 @@ if (!Object.keys) {
'top': value['y']
}, duration);
t++;
if (t == $els.length) {
if (t == i) {
complete.call(undefined, $els)
}
}, i * speed);
Expand All @@ -436,7 +436,7 @@ if (!Object.keys) {
'top': value['y']
}, duration);
t++;
if (t == $els.length) {
if (t == i) {
complete.call(undefined, $els)
}
}, i);
Expand All @@ -453,11 +453,14 @@ if (!Object.keys) {
'top': value['y']
});
t++;
if (t == $els.length) {
if (t == i) {
complete.call(undefined, $els)
}
}
});
if (i == 0) {
complete.call(undefined, $els)
}
},

append: function ($els) {
Expand Down

0 comments on commit 67674d5

Please sign in to comment.