1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Adding shouldInit and didInit event

This commit is contained in:
Tim Düsterhus 2011-12-27 17:10:39 +01:00
parent fc561804f9
commit d7183001f3

View File

@ -182,7 +182,9 @@
animations: {CHAT_ANIMATIONS}, animations: {CHAT_ANIMATIONS},
maxTextLength: {CHAT_LENGTH} maxTextLength: {CHAT_LENGTH}
} }
{event name='shouldInit'}
TimWolla.WCF.Chat.init(); TimWolla.WCF.Chat.init();
{event name='didInit'}
TimWolla.WCF.Chat.handleMessages([ TimWolla.WCF.Chat.handleMessages([
{implode from=$newestMessages item='message'} {implode from=$newestMessages item='message'}
{@$message->jsonify()} {@$message->jsonify()}