Update API.js

pull/2300/head
Cristo 2014-11-12 19:50:43 +01:00
parent 24ac082cae
commit f59238fe58
1 changed files with 1 additions and 1 deletions

View File

@ -587,6 +587,7 @@ exports.restoreRevision = function (padID, rev, callback)
{ {
var Changeset = require("ep_etherpad-lite/static/js/Changeset"); var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js"); var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
//check if rev is a number //check if rev is a number
if (rev !== undefined && typeof rev != "number") if (rev !== undefined && typeof rev != "number")
{ {
@ -682,7 +683,6 @@ exports.restoreRevision = function (padID, rev, callback)
}); });
callback(null, null); callback(null, null);
}); });
}); });
}; };