Skip to content

Commit

Permalink
feat(core): expose externalInterface from plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
towerz committed Nov 12, 2018
1 parent ab065eb commit 12bd804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/core_factory/core_factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ export default class CoreFactory extends BaseObject {

setupExternalInterface(plugin) {
const externalFunctions = plugin.getExternalInterface()
for (const key in externalFunctions)
for (const key in externalFunctions) {
this.player[key] = externalFunctions[key].bind(plugin)
this.core[key] = externalFunctions[key].bind(plugin)
}

}
}

0 comments on commit 12bd804

Please sign in to comment.