More scrict rules

This commit is contained in:
RainLoop Team 2016-07-05 22:52:52 +03:00
parent 71b6407d61
commit fb2e492ce8
30 changed files with 126 additions and 89 deletions

View file

@ -70,7 +70,7 @@ function MessageUserStore()
return this.messageCurrentLoading();
}, this);
this.messageLoadingThrottle = ko.observable(false).extend({'throttle': 50});
this.messageLoadingThrottle = ko.observable(false).extend({'throttle': Enums.Magics.Time50ms});
this.messageFullScreenMode = ko.observable(false);
@ -82,7 +82,7 @@ function MessageUserStore()
this.onMessageResponse = _.bind(this.onMessageResponse, this);
this.purgeMessageBodyCacheThrottle = _.throttle(this.purgeMessageBodyCache, 1000 * 30);
this.purgeMessageBodyCacheThrottle = _.throttle(this.purgeMessageBodyCache, Enums.Magics.Time30s);
}
MessageUserStore.prototype.computers = function()
@ -174,7 +174,7 @@ MessageUserStore.prototype.subscribers = function()
oItem.newForAnimation(false);
}
});
}, 500));
}, Enums.Magics.Time500ms));
this.message.subscribe(function(oMessage) {
@ -240,7 +240,7 @@ MessageUserStore.prototype.purgeMessageBodyCache = function()
{
_.delay(function() {
oMessagesDom.find('.rl-cache-purge').remove();
}, 300);
}, Enums.Magics.Time350ms);
}
}
}
@ -393,7 +393,7 @@ MessageUserStore.prototype.removeMessagesFromList = function(
_.each(aMessages, function(item) {
self.messageList.remove(item);
});
}, 400);
}, Enums.Magics.Time350ms);
}
}

View file

@ -198,7 +198,7 @@ NotificationUserStore.prototype.displayDesktopNotification = function(sImageSrc,
oLocalNotifications.close();
}
};
}(oNotification)), 7000);
}(oNotification)), Enums.Magics.Time7s);
}
}
};

View file

@ -83,7 +83,7 @@ SettingsUserStore.prototype.populate = function()
{
self.iAutoLogoutTimer = window.setTimeout(function() {
Events.pub('rl.auto-logout');
}, self.autoLogout() * 1000 * 60);
}, self.autoLogout() * Enums.Magics.Time1m);
}
});