kswedberg / jquery-smooth-scroll

Automatically make same-page links scroll smoothly
MIT License
1.97k stars 427 forks source link

add optional support for event delegation #85

Closed koenpunt closed 8 years ago

koenpunt commented 8 years ago

To support click handling for elements that are not already on the page at initialization.

Will only work with jQuery 1.4.2 and up, but is backwards compatible as long as delegateSelector is not set.

kswedberg commented 8 years ago

This looks good to me. Thanks! Can you please preserve the indentation and white space style that I use? Once that's cleaned up, I'll merge it in.

koenpunt commented 8 years ago

Done!

koenpunt commented 8 years ago

Or maybe not, but you're inconsistent with whitespace inside the parentheses of if statements.

kswedberg commented 8 years ago

Yeah, good enough. Thanks! One of these days, I'll go in and clean up the whole file (and add a .jscrc).

kswedberg commented 8 years ago

Closed by 9f34a80041d082c4d8344a0a8183b014cf378000. Thanks again!