Lint compliance

pull/1/head
yflory 2018-06-12 18:26:17 +02:00
parent 4896fe81fe
commit d1e8baca68
1 changed files with 4 additions and 2 deletions

View File

@ -9,9 +9,11 @@ define([
};
var create = function (onMsg, postMsg, cb, isWorker) {
var chanLoaded;
var waitingData;
if (!isWorker) {
var chanLoaded = false;
var waitingData = [];
chanLoaded = false;
waitingData = [];
onMsg.reg(function (data) {
if (chanLoaded) { return; }
waitingData.push(data);