Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/brick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class AngularMasonryBrick implements OnDestroy, AfterViewInit {
if (MutationObserver) {
/** Watch for any changes to subtree */
let self = this;
let observer = new MutationObserver(function(mutations, observerFromElement) {
let observer = new MutationObserver(function() {
self._parent.layout();
});

Expand Down
4 changes: 2 additions & 2 deletions src/masonry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class AngularMasonry implements OnInit, OnDestroy {
}

if (this.useImagesLoaded) {
imagesLoaded(element, (instance: any) => {
imagesLoaded(element, () => {
this._element.nativeElement.appendChild(element);

// Tell Masonry that a child element has been added
Expand Down Expand Up @@ -127,4 +127,4 @@ export class AngularMasonry implements OnInit, OnDestroy {

// console.log('AngularMasonry:', 'Brick removed');
}
}
}