mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Pad: New padRemove
hook pad
context property
This commit is contained in:
parent
8fe779b58c
commit
a2460a9848
3 changed files with 11 additions and 2 deletions
|
@ -594,7 +594,13 @@ Pad.prototype.remove = async function () {
|
|||
|
||||
// delete the pad entry and delete pad from padManager
|
||||
p.push(padManager.removePad(padID));
|
||||
p.push(hooks.aCallAll('padRemove', {padID}));
|
||||
p.push(hooks.aCallAll('padRemove', {
|
||||
get padID() {
|
||||
warnDeprecated('padRemove padID context property is deprecated; use pad.id instead');
|
||||
return this.pad.id;
|
||||
},
|
||||
pad: this,
|
||||
}));
|
||||
await Promise.all(p);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue