Fixed browser test.

This commit is contained in:
Martin Edenhofer 2016-05-27 14:33:25 +02:00
parent 4103aaa08a
commit 3375163c9c
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,10 @@
class App.TaskManager
_instance = undefined
@init: (params) ->
@init: (params = {}) ->
if params.force
_instance = new _taskManagerSingleton(params)
return
_instance ?= new _taskManagerSingleton(params)
@all: ->

View file

@ -6,6 +6,7 @@ test( "taskbar basic tests", function() {
App.TaskManager.init({
el: $('#taskbar1'),
offlineModus: true,
force: true,
})
// add tasks