Skip to content

Commit

Permalink
v1.2.1, empty object to plugin.install by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Apr 4, 2019
1 parent bdaaedf commit 6504479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Context<EventsTypes> extends Emitter<EventsTypes & DefaultEvents> {
use<T extends Plugin, O extends PluginParams<T>>(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)
}

Expand Down

0 comments on commit 6504479

Please sign in to comment.