mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
clean the code
This commit is contained in:
parent
867525945d
commit
add35f16fd
3 changed files with 11 additions and 13 deletions
|
@ -81,6 +81,7 @@ exports.handleMessage = function(client, message)
|
|||
|
||||
function handleClientReady(client, message)
|
||||
{
|
||||
//send the timeslider client the clientVars, with this values its able to start
|
||||
createTimesliderClientVars (message.padId, function(err, clientVars)
|
||||
{
|
||||
if(err) throw err;
|
||||
|
@ -89,6 +90,9 @@ function handleClientReady(client, message)
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles a request for a rough changeset, the timeslider client needs it
|
||||
*/
|
||||
function handleChangesetRequest(client, message)
|
||||
{
|
||||
var granularity = message.data.granularity;
|
||||
|
@ -96,6 +100,7 @@ function handleChangesetRequest(client, message)
|
|||
var end = start + (100 * granularity);
|
||||
var padId = message.padId;
|
||||
|
||||
//build the requested rough changesets and send them back
|
||||
getChangesetInfo(padId, start, end, granularity, function(err, changesetInfo)
|
||||
{
|
||||
if(err) throw err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue