lint compliance

This commit is contained in:
ansuz
2017-07-06 10:33:31 +02:00
parent bce0b03ba4
commit d3bbdc27c0
2 changed files with 2 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ define([
}) })
.on('ready', function () { .on('ready', function () {
console.log('ready'); console.log('ready');
cb(lm); cb(lm, done);
}) })
.on('disconnect', function () { .on('disconnect', function () {
console.log('disconnected'); console.log('disconnected');

View File

@@ -7,15 +7,7 @@ define([
], function ($, Cryptpad, Listmap, Curve) { ], function ($, Cryptpad, Listmap, Curve) {
var APP = window.APP = {}; var APP = window.APP = {};
var Nacl = window.nacl;
//var Messages = Cryptpad.Messages; //var Messages = Cryptpad.Messages;
var onReady = function () {
if (!APP.initialized) {
APP.initialized = true;
}
};
var onInit = function () {}; var onInit = function () {};
var onDisconnect = function () {}; var onDisconnect = function () {};
@@ -55,6 +47,7 @@ define([
var lm = APP.lm = Listmap.create(listmapConfig); var lm = APP.lm = Listmap.create(listmapConfig);
lm.proxy.on('create', onInit) lm.proxy.on('create', onInit)
.on('ready', function () { .on('ready', function () {
APP.initialized = true;
console.log(JSON.stringify(lm.proxy)); console.log(JSON.stringify(lm.proxy));
}) })
.on('disconnect', onDisconnect) .on('disconnect', onDisconnect)