Momentor (moment optimization)

This commit is contained in:
RainLoop Team 2015-03-07 04:32:06 +04:00
parent 7750587be1
commit 147dce6e4a
20 changed files with 331 additions and 173 deletions

View file

@ -6,7 +6,6 @@
var
_ = require('_'),
ko = require('ko'),
moment = require('moment'),
Enums = require('Common/Enums'),
Consts = require('Common/Consts'),
@ -205,7 +204,7 @@
var
aResult = [],
iLimit = 5,
iUtc = moment().unix(),
iUtc = require('Common/Momentor').momentNowUnix(),
iTimeout = iUtc - 60 * 5,
aTimeouts = [],
sInboxFolderName = Cache.getFolderInboxName(),

View file

@ -7,7 +7,6 @@
_ = require('_'),
ko = require('ko'),
window = require('window'),
moment = require('moment'),
$ = require('$'),
kn = require('Knoin/Knoin'),
@ -766,11 +765,11 @@
iCount = 0,
iOffset = 0,
aList = [],
iUtc = moment().unix(),
oJsonMessage = null,
oMessage = null,
oFolder = null,
iNewCount = 0,
iUtc = require('Common/Momentor').momentNowUnix(),
bUnreadCountChange = false
;