Skip to content
Browse files

UI Performance improvement

Stop looping on log entries to set their width, this is slow and not
needed anymore given CSS styling.
  • Loading branch information...
1 parent 9cdfac6 commit fcb6efd1fd872678c6e0efeb8e24837772aafe04 NicolasGarnier committed Jul 10, 2013
Showing with 0 additions and 6 deletions.
  1. +0 −1 js/rtpg.log.js
  2. +0 −5 js/rtpg.ui.js
View
1 js/rtpg.log.js
@@ -90,7 +90,6 @@ rtpg.log.formatDate = function(date) {
rtpg.log.onLogAdded = function(logMessage) {
$(rtpg.log.LOG_CONTAINER_SELECTOR).prepend(rtpg.log.createLogEntryElement(logMessage));
- rtpg.ui.resizeLogs();
rtpg.ui.hideShowLocalEvents();
};
View
5 js/rtpg.ui.js
@@ -78,11 +78,6 @@ rtpg.ui.resizeElements = function() {
$('#rightContainer').css('top','');
$('#rightContainer').css('right','0');
}
- rtpg.ui.resizeLogs();
-};
-
-rtpg.ui.resizeLogs = function() {
- $('.from').each(function(){$(this).width($('#rightContainer').width() - 200)});
};
rtpg.ui.matchSelectFromKey = function() {

0 comments on commit fcb6efd

Please sign in to comment.
Something went wrong with that request. Please try again.