From ac692bbd18e3563463cfff9d9fb73902fcfb119c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 23 Jun 2013 23:57:50 +0200 Subject: [PATCH] Fixed IE9 issues. --- .../javascripts/app/lib/app_post/task_manager.js.coffee | 7 ++++--- test/browser_test_helper.rb | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee index cd9255612..8cbbed905 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee @@ -222,7 +222,6 @@ class _taskManagerSingleton extends App.Controller worker.release() @workersStarted[ key ] = false @taskDestroy(task) - App.Event.trigger 'task:render' notify: ( key ) => task = @get( key ) @@ -262,8 +261,10 @@ class _taskManagerSingleton extends App.Controller taskDestroy: (task) -> @clearDelay( task.id, 'taskbar' ) - task.destroy() - App.Event.trigger 'task:render' + task.destroy( + success: -> + App.Event.trigger 'task:render' + ) tasksInitial: => # reopen tasks diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 1f123690a..cf264bc21 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -225,7 +225,6 @@ class TestCase < Test::Unit::TestCase instance.navigate.refresh elsif action[:execute] == 'js' result = instance.execute_script( action[:value] ) - puts "JS RESULT" + result.inspect elsif action[:link] if action[:link].match '###stack###' action[:link].gsub! '###stack###', @stack