(app, unloadInfo)
| 96 | } |
| 97 | |
| 98 | function finishUnloadingApp(app, unloadInfo) { |
| 99 | delete appsToUnload[toName(app)]; |
| 100 | |
| 101 | // Unloaded apps don't have lifecycles |
| 102 | delete app.bootstrap; |
| 103 | delete app.mount; |
| 104 | delete app.unmount; |
| 105 | delete app.unload; |
| 106 | |
| 107 | app.status = NOT_LOADED; |
| 108 | |
| 109 | /* resolve the promise of whoever called unloadApplication. |
| 110 | * This should be done after all other cleanup/bookkeeping |
| 111 | */ |
| 112 | unloadInfo.resolve(); |
| 113 | } |
| 114 | |
| 115 | function errorUnloadingApp(app, unloadInfo, err) { |
| 116 | delete appsToUnload[toName(app)]; |
no test coverage detected
searching dependent graphs…