From cf412e049f61953050873765a2362bcdbcaf8cdc Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 8 Apr 2013 12:51:32 +0000 Subject: [PATCH] Update Backbone.js to v1.0.0 --- .../js/compiled/users/collections/agents.js | 2 +- .../js/compiled/users/collections/threads.js | 2 +- .../js/compiled/users/collections/visitors.js | 2 +- src/messenger/webim/js/compiled/users_app.js | 6 +-- src/messenger/webim/js/libs/backbone-min.js | 46 ++----------------- .../js/source/users/collections/agents.js | 2 +- .../js/source/users/collections/threads.js | 2 +- .../js/source/users/collections/visitors.js | 2 +- 8 files changed, 13 insertions(+), 51 deletions(-) diff --git a/src/messenger/webim/js/compiled/users/collections/agents.js b/src/messenger/webim/js/compiled/users/collections/agents.js index 5ee0529f..d641dd9f 100644 --- a/src/messenger/webim/js/compiled/users/collections/agents.js +++ b/src/messenger/webim/js/compiled/users/collections/agents.js @@ -5,4 +5,4 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(b,c,d){b.Collections.Agents=c.Collection.extend({model:b.Models.Agent,comparator:function(a){return a.get("name")},initialize:function(){var a=b.Objects.Models.agent;b.Objects.server.callFunctionsPeriodically(function(){return[{"function":"updateOperators",arguments:{agentId:a.id,"return":{operators:"operators"},references:{}}}]},d.bind(this.updateOperators,this))},updateOperators:function(a){this.update(a.operators)}})})(Mibew,Backbone,_); +(function(b,c,d){b.Collections.Agents=c.Collection.extend({model:b.Models.Agent,comparator:function(a){return a.get("name")},initialize:function(){var a=b.Objects.Models.agent;b.Objects.server.callFunctionsPeriodically(function(){return[{"function":"updateOperators",arguments:{agentId:a.id,"return":{operators:"operators"},references:{}}}]},d.bind(this.updateOperators,this))},updateOperators:function(a){this.set(a.operators)}})})(Mibew,Backbone,_); diff --git a/src/messenger/webim/js/compiled/users/collections/threads.js b/src/messenger/webim/js/compiled/users/collections/threads.js index d15f41d9..d977b068 100644 --- a/src/messenger/webim/js/compiled/users/collections/threads.js +++ b/src/messenger/webim/js/compiled/users/collections/threads.js @@ -7,4 +7,4 @@ */ (function(c,e,f){c.Collections.Threads=e.Collection.extend({model:c.Models.QueuedThread,initialize:function(){this.revision=0;var a=this,b=c.Objects.Models.agent;c.Objects.server.callFunctionsPeriodically(function(){return[{"function":"currentTime",arguments:{agentId:b.id,"return":{time:"currentTime"},references:{}}},{"function":"updateThreads",arguments:{agentId:b.id,revision:a.revision,"return":{threads:"threads",lastRevision:"lastRevision"},references:{}}}]},f.bind(this.updateThreads,this))},comparator:function(a){var b= {field:a.get("waitingTime").toString()};this.trigger("sort:field",a,b);return b.field},updateThreads:function(a){if(0==a.errorCode){if(0=b);this.root=("/"+this.root+"/").replace(I,"/");b&&this._wantsHashChange&&(this.iframe=g.$('