1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-07 11:03:01 +00:00

Improve comments and coding style

This commit is contained in:
Jermolene
2014-09-01 20:39:08 +01:00
parent ca1de2be99
commit 2f6d16b0fa
2 changed files with 11 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ function Syncer(options) {
self.handleLazyLoadEvent(title);
});
// Get the login status
this.getStatus(function (err,isLoggedIn) {
this.getStatus(function(err,isLoggedIn) {
// Do a sync from the server
self.syncFromServer();
});
@@ -173,7 +173,7 @@ Syncer.prototype.syncFromServer = function() {
this.pollTimerId = null;
}
this.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {
// Trigger another sync
// Trigger the next sync
self.pollTimerId = setTimeout(function() {
self.pollTimerId = null;
self.syncFromServer.call(self);