apeatling / web-pull-to-refresh

A native-like JavaScript pull to refresh implementation for the web.
https://apeatling.com/articles/javascript-pull-to-refresh-web/
MIT License
545 stars 93 forks source link

Please add post reset function #8

Open jcrosswh opened 9 years ago

jcrosswh commented 9 years ago

We make class changes to our ptr element in the loadingFunction, and we'd like to have a hook to reset it once done. In this update, I've added an optional function that may be called once the reset has completed.