discourse/app/assets
Jarek Radosz 7a8442435c
REFACTOR: LockOn class (#10428)
Mostly de-jQuery-ification. This refactor tries to closely preserve the original behavior.

Changes:
* Store the interval inside the class (allows using `clearLock()` on `LockOn` objects)
* Extract the interval function to a separate method
* Math.max result is never undefined (per MDN: "[Return value] The largest of the given numbers. If at least one of the arguments cannot be converted to a number, NaN is returned.")
* Replace jQuery's `offset()`
* Private methods be private
* Native `scrollTop` (jQuery's just a wrapper for this)
* `addEventListener`/`removeEventListener`
2020-08-13 16:43:05 +02:00
..
images
javascripts REFACTOR: LockOn class (#10428) 2020-08-13 16:43:05 +02:00
stylesheets follow-ups to 1972364: increase notification limit, make show-all a link 2020-08-12 17:14:48 -04:00