mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
added deletePad API function
This commit is contained in:
parent
783c192726
commit
d2c502e2be
9 changed files with 134 additions and 7 deletions
|
@ -230,7 +230,6 @@ Example returns:
|
|||
*/
|
||||
exports.deletePad = function(padID, callback)
|
||||
{
|
||||
//get the pad
|
||||
getPadSafe(padID, true, function(err, pad)
|
||||
{
|
||||
if(err)
|
||||
|
@ -239,7 +238,7 @@ exports.deletePad = function(padID, callback)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
pad.remove(callback);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue