pad.libre-service.eu-etherpad/src
Richard Hansen 8efc87f33a AttributeManager: Fix bogus this during attribute removal
Before this commit, the callback passed to `.map()` during attribute
removal was a normal function, not an arrow function. This meant that
the value of `this` in the function body depended on how the callback
was invoked. In this case, the callback was invoked without any
explicit context (it was not called as a method, nor was it called via
`.call()`, `.apply()`, or `.bind()`). Without any explicit context,
the value of `this` depends on strict mode. Currently the function is
in sloppy mode, so `this` refers to the "global this" object (a.k.a.,
`window`). It doesn't make sense for the callback to reference
`window.author`, so I'm assuming the previous behavior was a bug.

Now the function is an arrow function, so the value of `this` comes
from the enclosing lexical context, which in this case is the
AttributeManager object. I believe that was the original intention.
2021-01-29 09:16:50 +00:00
..
locales Localisation updates from https://translatewiki.net. 2021-01-28 18:48:11 +01:00
node lint: Re-run eslint --fix 2021-01-29 01:14:03 -05:00
static AttributeManager: Fix bogus this during attribute removal 2021-01-29 09:16:50 +00:00
templates socket.io: Factor out client connection logic 2020-12-23 16:18:28 -05:00
ep.json socket.io: Disconnect clients when closing HTTP server 2020-12-23 16:18:28 -05:00
etherpad_icon.svg Change favicon to be closer to new style 2020-04-19 18:20:21 +02:00
package-lock.json Bump eslint-config-etherpad to 1.0.24 2021-01-29 01:10:58 -05:00
package.json Bump eslint-config-etherpad to 1.0.24 2021-01-29 01:10:58 -05:00
README.md remove one less warning during install by having a readme placeholder 2013-02-10 03:04:08 +00:00
tests tests: Create a src/tests/ symlink that points to tests/ 2021-01-28 10:02:58 +00:00
web.config Add IIS config file 2012-10-25 10:22:28 -07:00

Ignore this file and see the file in the base installation folder