diff --git a/public/src/templates.js b/public/src/templates.js index e038161d50..7fe0734437 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -5,7 +5,7 @@ var templates = {}; templates.ready = function(callback) { //quick implementation because introducing a lib to handle several async callbacks - if (callback == null) ready_callback(); + if (callback == null && ready_callback) ready_callback(); else ready_callback = callback; }