dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.06k stars 878 forks source link

Fix checking custom breakpoints when options are not provided #188

Closed Kruemelkatze closed 4 years ago

Kruemelkatze commented 4 years ago

Fixes #187

In the latest update, the check for options.breakpoints fails if no options object is provided when initializing Rellax var rellax = new Rellax('.parallax');. This PR fixes this by checking for options && options.breakpoints.

You may need to minify it with your tool, couldn't find the option/script for minimizing. :)

veneliniliev commented 4 years ago

please merge this