|
@@ -59,6 +59,10 @@ class App.TaskbarWidget extends App.CollectionController
|
|
@controllerBind('taskCollectionOrderSet', (taskKeys) =>
|
|
@controllerBind('taskCollectionOrderSet', (taskKeys) =>
|
|
@collectionOrderSet(taskKeys)
|
|
@collectionOrderSet(taskKeys)
|
|
)
|
|
)
|
|
|
|
+ @controllerBind('taskClose', (tasks) =>
|
|
|
|
+ for task in tasks
|
|
|
|
+ @remove(null, task)
|
|
|
|
+ )
|
|
|
|
|
|
itemGet: (key) ->
|
|
itemGet: (key) ->
|
|
App.TaskManager.get(key)
|
|
App.TaskManager.get(key)
|
|
@@ -74,8 +78,8 @@ class App.TaskbarWidget extends App.CollectionController
|
|
@locationVerify(e)
|
|
@locationVerify(e)
|
|
|
|
|
|
remove: (e, key = false, force = false) =>
|
|
remove: (e, key = false, force = false) =>
|
|
- e.preventDefault()
|
|
|
|
- e.stopPropagation()
|
|
|
|
|
|
+ e?.preventDefault()
|
|
|
|
+ e?.stopPropagation()
|
|
if !key
|
|
if !key
|
|
key = $(e.target).parents('a').data('key')
|
|
key = $(e.target).parents('a').data('key')
|
|
if !key
|
|
if !key
|