Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollspy: correct event naming of scroll and `load' event #12337

Closed
wants to merge 1 commit into from

Conversation

tlindig
Copy link
Contributor

@tlindig tlindig commented Jan 22, 2014

event name scroll.bs.scroll-spy.data-api is bad in two points.
First: namespace bs.scroll-spy is different to bs.scrollspy. Firstone is only used for this event, so I bet it is wrong.
Second: the event scroll has nothing to do with the data-api, so I remove it.

The better event name is: scroll.bs.scrollspy

And the registration of the load event handler should have a namespace. So I change it to load.bs.scrollspy.data-api.

@cvrebert
Copy link
Collaborator

Sauce + BrowserStack tests pass: https://travis-ci.org/twbs/bootstrap/builds/17430541

@cvrebert cvrebert modified the milestones: v3.2.0, v3.1.1 Feb 9, 2014
@fat
Copy link
Member

fat commented Mar 17, 2014

this lgtm 👍

@mdo
Copy link
Member

mdo commented May 23, 2014

Turns out this breaks scrollspy highlighting in the docs somehow. See #13659.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants