From ca647d31c09fc40ac28875934655c5fcf44f021b Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 23 Mar 2018 23:18:32 +0100 Subject: [PATCH] fix core api bug --- src/core/core.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/core.coffee b/src/core/core.coffee index 76a3e55..0319c7d 100644 --- a/src/core/core.coffee +++ b/src/core/core.coffee @@ -105,15 +105,14 @@ self.OS or= killAll: (app, force) -> return unless _PM.processes[app] - tmp = [] - tmp.push a for a in _PM.processes[app] - a.quit(force) for a in tmp + a.quit(force) for a in _PM.processes[app] cleanup: -> console.log "Clean up system" + _PM.killAll a, true for a, v of _PM.processes + _courrier.observable.off("*") if _courrier.observable ($ "#wrapper").empty() _GUI.clearTheme() - _courrier.observable.off("*") if _courrier.observable _courrier.observable = riot.observable() _courrier.quota = 0 _OS.APP = {}