mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Pad: Move padLoad
hook invocation to PadManager.js
This puts global state change logic with the rest of the global state management logic. This also makes it possible to create temporary Pad objects without triggering plugin actions.
This commit is contained in:
parent
f7d4abdabe
commit
885ff3bcde
3 changed files with 8 additions and 7 deletions
|
@ -366,8 +366,6 @@ Pad.prototype.init = async function (text) {
|
|||
|
||||
await this.appendRevision(firstChangeset, '');
|
||||
}
|
||||
|
||||
hooks.callAll('padLoad', {pad: this});
|
||||
};
|
||||
|
||||
Pad.prototype.copy = async function (destinationID, force) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue