]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix load & scroll event usage in ScrollSpy tests (#19986)
authorChris Rebert <github@chrisrebert.com>
Mon, 30 May 2016 16:39:45 +0000 (09:39 -0700)
committerChris Rebert <github@chrisrebert.com>
Mon, 30 May 2016 16:39:45 +0000 (09:39 -0700)
commit14c7ba95f97d853ef653893abfe530a919a1ed24
treed7695b3253a2101e819aef057fa9f15df01299b8
parentd35973c2b3eacd15b297863ba79bcc46d877ba52
Fix load & scroll event usage in ScrollSpy tests (#19986)

* Use $.one() instead of $.on() since there are no $.off()s in the code.
* Remove unnecessary namespacing of listeners for the `scroll` & `load` events.
    These are vanilla DOM events (not custom jQuery namespaced events)
    and we're not using jQuery namespacing to manage these event listeners either (e.g. `$.off()`).

[skip validator]
js/tests/unit/scrollspy.js