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
|
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: ->
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue