mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 13:24:58 +08:00
![]() 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` |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |