From 23812038d9a1c03df47d9579c8ec23e50fc86bcf Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 15 Feb 2013 11:56:42 +0000 Subject: [PATCH] Add finalizer to chat module in Chat JavaScript application --- .../js/compiled/chat/collections/messages.js | 5 +- .../webim/js/compiled/chat/models/avatar.js | 2 +- .../webim/js/compiled/chat/modules/chat.js | 12 +- src/messenger/webim/js/compiled/chat_app.js | 19 +-- .../js/source/chat/collections/messages.js | 27 +++- .../webim/js/source/chat/models/avatar.js | 25 +++- .../webim/js/source/chat/modules/chat.js | 131 +++++++++++++----- 7 files changed, 161 insertions(+), 60 deletions(-) diff --git a/src/messenger/webim/js/compiled/chat/collections/messages.js b/src/messenger/webim/js/compiled/chat/collections/messages.js index c9c68b26..47f2c678 100644 --- a/src/messenger/webim/js/compiled/chat/collections/messages.js +++ b/src/messenger/webim/js/compiled/chat/collections/messages.js @@ -5,5 +5,6 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(b,d,f){b.Collections.Messages=d.Collection.extend({model:b.Models.Message,initialize:function(){b.Objects.server.callFunctionsPeriodically(f.bind(this.updateMessagesFunctionBuilder,this),f.bind(this.updateMessages,this))},updateMessages:function(a){a.lastId&&b.Objects.Models.thread.set({lastId:a.lastId});for(var c=[],e=0,d=a.messages.length;e