From b6c367bf6a4e30f1a51b456bdf0cc7f993b84e81 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 1 Oct 2013 22:47:21 +0200 Subject: [PATCH] Rezise tasks faster. --- app/assets/javascripts/app/controllers/task_widget.js.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/task_widget.js.coffee b/app/assets/javascripts/app/controllers/task_widget.js.coffee index 67e4cc959..2a8153d32 100644 --- a/app/assets/javascripts/app/controllers/task_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/task_widget.js.coffee @@ -104,9 +104,8 @@ class Taskbar extends App.Controller # on window resize resizeTasksDelay = => - App.Delay.set( @resizeTasks, 100, 'resizeTasks', 'task' ) - $(window).off( 'resize.taskbar' ) - $(window).on( 'resize.taskbar', resizeTasksDelay ) + App.Delay.set( @resizeTasks, 60, 'resizeTasks', 'task' ) + $(window).off( 'resize.taskbar' ).on( 'resize.taskbar', resizeTasksDelay ) # render view @bind 'task:render', => @render()