fix core api bug

This commit is contained in:
Xuan Sang LE 2018-03-23 23:18:32 +01:00
parent c403a5b8bf
commit ca647d31c0

View File

@ -105,15 +105,14 @@ self.OS or=
killAll: (app, force) -> killAll: (app, force) ->
return unless _PM.processes[app] return unless _PM.processes[app]
tmp = [] a.quit(force) for a in _PM.processes[app]
tmp.push a for a in _PM.processes[app]
a.quit(force) for a in tmp
cleanup: -> cleanup: ->
console.log "Clean up system" console.log "Clean up system"
_PM.killAll a, true for a, v of _PM.processes
_courrier.observable.off("*") if _courrier.observable
($ "#wrapper").empty() ($ "#wrapper").empty()
_GUI.clearTheme() _GUI.clearTheme()
_courrier.observable.off("*") if _courrier.observable
_courrier.observable = riot.observable() _courrier.observable = riot.observable()
_courrier.quota = 0 _courrier.quota = 0
_OS.APP = {} _OS.APP = {}