mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 13:04:59 +08:00
7a8442435c
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` |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |