From 069368fe88435eda3bd6d1e97770a82cc5854b94 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 11 Jul 2013 15:51:26 -0400 Subject: [PATCH] removed callback --- public/src/app.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index fdef8aa924..fdfd6ca674 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -8,7 +8,7 @@ var socket, (function() { RELATIVE_PATH = $('#relative_path').val(); - function loadConfig(callback) { + function loadConfig() { $.ajax({ url: RELATIVE_PATH + '/config.json?v=' + new Date().getTime(), @@ -231,15 +231,10 @@ var socket, }, 100); } - - - - - jQuery('document').ready(function() { - loadConfig(function () {}); + loadConfig(); app.enter_room('global');