Fixed browser test.
This commit is contained in:
parent
4103aaa08a
commit
3375163c9c
2 changed files with 5 additions and 1 deletions
|
@ -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: ->
|
||||
|
|
|
@ -6,6 +6,7 @@ test( "taskbar basic tests", function() {
|
|||
App.TaskManager.init({
|
||||
el: $('#taskbar1'),
|
||||
offlineModus: true,
|
||||
force: true,
|
||||
})
|
||||
|
||||
// add tasks
|
||||
|
|
Loading…
Reference in a new issue