mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fixed ready_callback bug
This commit is contained in:
@@ -5,7 +5,7 @@ var templates = {};
|
|||||||
|
|
||||||
templates.ready = function(callback) {
|
templates.ready = function(callback) {
|
||||||
//quick implementation because introducing a lib to handle several async callbacks
|
//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;
|
else ready_callback = callback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user