Small fixes

This commit is contained in:
RainLoop Team 2014-09-12 20:32:05 +04:00
parent 1d309979b8
commit fdf317f7a6
5 changed files with 24 additions and 4 deletions

View file

@ -690,7 +690,7 @@
this.initUploaderForAppend();
this.initShortcuts();
if (!Globals.bMobileDevice && Settings.capa(Enums.Capa.Prefetch) && ifvisible)
if (!Globals.bMobileDevice && ifvisible && Settings.capa(Enums.Capa.Prefetch))
{
ifvisible.setIdleDuration(10);
@ -824,7 +824,7 @@
MessageListMailBoxAppView.prototype.prefetchNextTick = function ()
{
if (!this.bPrefetch && !ifvisible.now() && this.viewModelVisibility())
if (ifvisible && !this.bPrefetch && !ifvisible.now() && this.viewModelVisibility())
{
var
self = this,