diff --git a/www/common/outer/worker-channel.js b/www/common/outer/worker-channel.js index bff81a27b..30148fc40 100644 --- a/www/common/outer/worker-channel.js +++ b/www/common/outer/worker-channel.js @@ -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);