Simple prefetch functionality (ifvisible.js)

config:
[labs]
allow_prefetch
This commit is contained in:
RainLoop Team 2014-01-26 18:23:37 +04:00
parent b7e135a553
commit 38672e1672
18 changed files with 988 additions and 28 deletions

View file

@ -17,8 +17,6 @@ function MessageModel()
this.toEmailsString = ko.observable('');
this.senderEmailsString = ko.observable('');
this.prefetched = false;
this.emails = [];
this.from = [];
@ -228,8 +226,6 @@ MessageModel.prototype.clear = function ()
this.toEmailsString('');
this.senderEmailsString('');
this.prefetched = false;
this.emails = [];
this.from = [];
@ -299,8 +295,6 @@ MessageModel.prototype.initByJson = function (oJsonMessage)
this.uid = oJsonMessage.Uid;
this.requestHash = oJsonMessage.RequestHash;
this.prefetched = false;
this.size(Utils.pInt(oJsonMessage.Size));
this.from = MessageModel.initEmailsFromJson(oJsonMessage.From);