septima-widget 0.0.0-dev-ccc8a → 0.0.0-dev-2e26d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/widgetapi.mjs +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "septima-widget",
3
- "version": "0.0.0-dev-ccc8a",
3
+ "version": "0.0.0-dev-2e26d",
4
4
  "description": "Septima Widget API",
5
5
  "type": "module",
6
6
  "module": "./widgetapi.mjs",
package/widgetapi.mjs CHANGED
@@ -14,7 +14,7 @@ export default class WidgetAPI {
14
14
 
15
15
  async _load(target, config, options) {
16
16
  const { load } = await import('https://widget.cdn.septima.dk/dev/core/load.mjs')
17
- this._widget = await load(target, config, options, this.VERSION)
17
+ this._widget = await load(target, config, options, this)
18
18
  this.on('controlsready', () => {
19
19
  this._controlsReady()
20
20
  })
@@ -40,6 +40,7 @@ export default class WidgetAPI {
40
40
  }
41
41
  }
42
42
  }
43
+ this._widget.events.fireEvent('ready', this)
43
44
  }
44
45
 
45
46
  _controlsReady(func) {