Open heatxsink opened 12 years ago
I have the same issues and question. any thoughts joe?
You can get the code working but as it stands it looks like there are two variable that aren't defined. "exports" and "require"
To get the code running just comment out or remove all of the exports stuff (lines 77-84). Then on line 94 where require is mentioned, just pull the two lines of code out of that ready function and comment the ready function out. After doing this your code will run. I'm not sure what the deal is with the exports and require function but I assume we're missing some code for that stuff.
after some poking around it looks like the repo is/was built for node.js (via npm) hence "exports" and "require"?
Yeah I found the same thing just after posting.
Great stuff, that's worked for me too.
Any idea on how to replicate the old scrollToTop function though? Without that I'm pretty stuck.
ah maybe it's CommonJS format and not npm? anyone?
here we go ...
issues
question
in an older version of scrollability there was a method to scrollToTop. how would one do that now?
thanks, nick