mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-11-29 22:40:59 +01:00
db/API.js: require() Changeset library at top of file
Introduced with d246a191c6cc ("Added option to restore revisions #1791") on
2014-11-08.
This commit is contained in:
parent
06756e49ee
commit
cc23bd18a4
@ -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…
x
Reference in New Issue
Block a user