provide all callbacks before starting

This commit is contained in:
ansuz
2016-04-20 18:27:20 +02:00
parent 9498937b43
commit 1d70335228
2 changed files with 11 additions and 21 deletions

View File

@@ -222,8 +222,8 @@ define([
verbose(message);
allMessages.push(message);
if (!initializing) {
if (toReturn.onLocal) {
toReturn.onLocal();
if (config.onLocal) {
config.onLocal();
}
}
realtime.message(message);