fixed ready_callback bug

v1.18.x
psychobunny 12 years ago
parent d622c9e100
commit 2bc9876852

@ -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;
}

Loading…
Cancel
Save