provide all callbacks before starting

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

No files matched your search

+2 -2
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);