passy/angular-masonry — pull request #66 by kkolstad (2014-07-18 05:27:57+00:00)
Title: Reload when masonry element becomes visible

I have an app that hides and shows a masonry element. If the user resizes the window while the masonry element is hidden it looks pretty jacked up once shown again. I added a `$watch` to call `ctrl.reload` when a change in visibility is detected.

I tried to write tests but can't seem to figure out how to mock/spy on `element`. Any thoughts?