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 class App.TaskManager
_instance = undefined _instance = undefined
@init: (params) -> @init: (params = {}) ->
if params.force
_instance = new _taskManagerSingleton(params)
return
_instance ?= new _taskManagerSingleton(params) _instance ?= new _taskManagerSingleton(params)
@all: -> @all: ->

View file

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