kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

onComplete called twice #110

Closed mk0y closed 10 years ago

mk0y commented 10 years ago

On first page load, when I set onResize function to do fitWidth, then onComplete function will be called twice.

kombai commented 10 years ago

Could you please show your setting ?

mk0y commented 10 years ago

I don't have it anymore since I had to choose another library. But I followed this page: http://vnjs.net/www/project/freewall/#events

Just added onComplete option to reset function.

kombai commented 10 years ago

This is the demo for onComplete event: http://vnjs.net/www/project/freewall/example/oncomplete.html It called only one time.