mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-08-01 22:45:09 +00:00
This commit vastly shortens (and simplifies) the version table within
handler/APIHandler.js by building each version's entry incrementally based off
the previous version.
The resulting table has been validated by comparing the "before" and "after"
output of the following loop on both versions of the code (albeit with an
intermediate "sort" step to account for the different insertion order)
for (let v in version) {
let m = version[v];
for (let [k, a] of Object.entries(m)) {
console.log(v, k, a);
}
}
The patch also fixes a few typos, and removes a duplicate definition of
getChatHistory which in each applicable version was defined with two different
parameter lists, but where only the second would be used.
|
||
|---|---|---|
| .. | ||
| APIHandler.js | ||
| ExportHandler.js | ||
| ImportHandler.js | ||
| PadMessageHandler.js | ||
| SocketIORouter.js | ||