From 2bc98768528290569983adbbff5de49928cf429e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 May 2013 16:48:49 +0000 Subject: [PATCH] fixed ready_callback bug --- public/src/templates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }