From f9a3e42f159ccf797106f90f9b890e93c8fe6cab Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 12 Oct 2016 23:05:30 +0300 Subject: [PATCH] Fix destroy/reinit --- lib/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.ts b/lib/index.ts index 1ad46f3a..e8b463d2 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -48,6 +48,7 @@ export function init(specUrl:string, options:any = {}) { export function destroy() { moduleRef.destroy(); + moduleRef = null; };