mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Merge branch 'develop' of github.com:ether/etherpad-lite into mochawesome
This commit is contained in:
commit
360f32aa13
2 changed files with 4 additions and 3 deletions
|
@ -418,7 +418,7 @@ Pad.prototype.copy = async function copy(destinationID, force) {
|
||||||
await padManager.getPad(destinationID, null); // this runs too early.
|
await padManager.getPad(destinationID, null); // this runs too early.
|
||||||
|
|
||||||
// let the plugins know the pad was copied
|
// let the plugins know the pad was copied
|
||||||
hooks.callAll('padCopy', {originalPad: this, destinationID});
|
await hooks.aCallAll('padCopy', {originalPad: this, destinationID});
|
||||||
|
|
||||||
return {padID: destinationID};
|
return {padID: destinationID};
|
||||||
};
|
};
|
||||||
|
@ -520,7 +520,7 @@ Pad.prototype.copyPadWithoutHistory = async function copyPadWithoutHistory(desti
|
||||||
const changeset = Changeset.pack(oldLength, newLength, assem.toString(), newText);
|
const changeset = Changeset.pack(oldLength, newLength, assem.toString(), newText);
|
||||||
newPad.appendRevision(changeset);
|
newPad.appendRevision(changeset);
|
||||||
|
|
||||||
hooks.callAll('padCopy', {originalPad: this, destinationID});
|
await hooks.aCallAll('padCopy', {originalPad: this, destinationID});
|
||||||
|
|
||||||
return {padID: destinationID};
|
return {padID: destinationID};
|
||||||
};
|
};
|
||||||
|
@ -574,7 +574,7 @@ Pad.prototype.remove = async function remove() {
|
||||||
|
|
||||||
// delete the pad entry and delete pad from padManager
|
// delete the pad entry and delete pad from padManager
|
||||||
p.push(padManager.removePad(padID));
|
p.push(padManager.removePad(padID));
|
||||||
hooks.callAll('padRemove', {padID});
|
p.push(hooks.aCallAll('padRemove', {padID}));
|
||||||
await Promise.all(p);
|
await Promise.all(p);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
1
src/tests
Symbolic link
1
src/tests
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../tests
|
Loading…
Add table
Add a link
Reference in a new issue