From 6504479bdcf661b7394083779ebf3379fe3e868b Mon Sep 17 00:00:00 2001 From: Vitaliy Stoliarov Date: Fri, 5 Apr 2019 02:16:35 +0300 Subject: [PATCH] v1.2.1, empty object to plugin.install by default --- package.json | 2 +- src/core/context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 606d6aa7..f73c7c70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rete", - "version": "1.2.0", + "version": "1.2.1", "description": "JavaScript framework", "main": "build/rete.common.js", "module": "build/rete.esm.js", diff --git a/src/core/context.ts b/src/core/context.ts index b918ac33..62d720a2 100644 --- a/src/core/context.ts +++ b/src/core/context.ts @@ -25,7 +25,7 @@ export class Context extends Emitter { use>(plugin: T, options?: O) { if (plugin.name && this.plugins.has(plugin.name)) throw new Error(`Plugin ${plugin.name} already in use`) - plugin.install(this, options); + plugin.install(this, options || {}); this.plugins.set(plugin.name, options) }