Skip to content

Directive doesn't work if the hierarchy is not direct #28

@lonormaly

Description

@lonormaly

Hello,

The directive isn't working if the masonry-tile is not a direct child of masonry.
Let's say I have a directive called "thumbnail" which contains a template:

and the masonry-tile should be on the div.
Currently, there is an error:
TypeError: Cannot read property 'update' of undefined
From var master = elem.parent('*[masonry]:first').scope(),
update = master.update, on the directive (line 54).

Can you support non-direct child of masonry?

Thanks,
Shai

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions