Rezise tasks faster.
This commit is contained in:
parent
9950ede40a
commit
b6c367bf6a
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue