raphamorim / waterfall.js

Tired of use creepy hacks or heavy ways to get a Grid based on Pinterest?
http://raphamorim.io/waterfall.js/
540 stars 70 forks source link

How about support module style? #30

Closed sculove closed 8 years ago

sculove commented 8 years ago

I want to use waterfall.js but I must use waterfall global function.

How about support moulde like AMD or UMD or es6 styles?

If you are busy, I am willing to contribute this issue.

sculove commented 8 years ago

a like issue #7

raphamorim commented 8 years ago

Solved in 1.1.0 (10f398b4b2c0caeca6629824092ade143ad038bc)

Thanks for reporting :)

sergiokopplin commented 7 years ago

@raphamorim, i'm not able to use modules way in my project, is that really solved? how to use this way?

sergiokopplin commented 7 years ago

@raphamorim, this worked for me:

import waterfall from 'waterfall.js/src/waterfall';

you should add this on documentation :)

raphamorim commented 7 years ago

Nice @sergiokopplin, Can you send a PR with this change in README.md?

sergiokopplin commented 7 years ago

sorry, to late. rs

here it doesn't work just with from waterfall, it must have the waterfall.js/src/waterfall.

Have you fixed that?

raphamorim commented 7 years ago

Updated, thanks :)