Skip to content
This repository was archived by the owner on Dec 30, 2018. It is now read-only.

Commit dd408af

Browse files
committed
v0.2.1
1 parent a10b652 commit dd408af

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
<a name="v0.2.0"></a>
1+
<a name="v0.2.1"></a>
2+
## v0.2.0 (2013-07-22)
3+
4+
5+
#### Bug Fixes
6+
7+
* **app:** scheduled re-layout too early ([a10b6522](http://github.com/passy/angular-masonry/commit/a10b6522c373e0352f53c54bbbe1004ed1297434))
8+
9+
<a name="v0.2.1"></a>
210
## v0.2.0 (2013-07-17)
311

412

angular-masonry.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-masonry 0.2.0
2+
* angular-masonry 0.2.1
33
* Pascal Hartig, weluse GmbH, http://weluse.de/
44
* License: MIT
55
*/
@@ -20,8 +20,10 @@
2020

2121
$timeout(function relayout() {
2222
reloadScheduled = false;
23-
$element.masonry('layout');
24-
}, 0);
23+
if (!destroyed) {
24+
$element.masonry('layout');
25+
}
26+
}, 30);
2527
}
2628
}
2729

@@ -104,7 +106,7 @@
104106
var id = scope.$id;
105107

106108
ctrl.appendBrick(element, id);
107-
scope.$on('$destroy', function () {
109+
element.on('$destroy', function () {
108110
ctrl.removeBrick(id, element);
109111
});
110112
}

angular-masonry.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-masonry",
33
"description": "An AngularJS directive for Masonry.",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"main": "./angular-masonry.js",
66
"ignore": [
77
"**/.*",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-masonry",
3-
"version": "0.1.0",
3+
"version": "0.2.1",
44
"devDependencies": {
55
"grunt-contrib-uglify": "~0.2.2",
66
"grunt": "~0.4.1",

0 commit comments

Comments
 (0)