db/API.js: require() Changeset library at top of file
Introduced with d246a191c6
("Added option to restore revisions #1791") on
2014-11-08.
This commit is contained in:
parent
06756e49ee
commit
cc23bd18a4
1 changed files with 1 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
var ERR = require("async-stacktrace");
|
||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
var customError = require("../utils/customError");
|
||||
var padManager = require("./PadManager");
|
||||
var padMessageHandler = require("../handler/PadMessageHandler");
|
||||
|
@ -739,8 +740,6 @@ exports.deletePad = function(padID, callback)
|
|||
*/
|
||||
exports.restoreRevision = function (padID, rev, callback)
|
||||
{
|
||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
|
||||
//check if rev is a number
|
||||
if (rev !== undefined && typeof rev != "number")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue