@webqit/oohtml 2.1.3 → 2.1.4

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.
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "wicg-proposal"
15
15
  ],
16
16
  "homepage": "https://webqit.io/tooling/oohtml",
17
- "version": "2.1.3",
17
+ "version": "2.1.4",
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
@@ -16,7 +16,6 @@ import HTMLContext from './HTMLContext.js';
16
16
  export default function init( $params = { }) {
17
17
  const window = this, dom = wqDom.call( window );
18
18
  if ( !window.wq ) { window.wq = {}; }
19
- // -------
20
19
  window.wq.HTMLContextManager = HTMLContextManager;
21
20
  window.wq.HTMLContext = HTMLContext;
22
21
  // -------
@@ -18,6 +18,9 @@ import { _ } from '../util.js';
18
18
  export default function init( $params = {} ) {
19
19
  const window = this, dom = wqDom.call( window );
20
20
  if ( !window.wq ) { window.wq = {}; }
21
+ window.wq.HTMLImportsContext = class extends _HTMLImportsContext {
22
+ static get params() { return params; }
23
+ };
21
24
  // -------
22
25
  const params = dom.meta( 'oohtml' ).copyWithDefaults( $params, {
23
26
  template: { attr: { exportid: 'exportid', extends: 'extends', inherits: 'inherits' }, api: { modules: 'modules', exportid: 'exportid' }, },
@@ -29,10 +32,6 @@ export default function init( $params = {} ) {
29
32
  params.templateSelector = `template[${ window.CSS.escape( params.template.attr.exportid ) }]`;
30
33
  params.ownerContextSelector = [ params.context.attr.contextname, params.context.attr.importscontext ].map( a => `[${ window.CSS.escape( a ) }]` ).join( ',' );
31
34
  // -------
32
- window.wq.HTMLImportsContext = class extends _HTMLImportsContext {
33
- static get params() { return params; }
34
- };
35
- // -------
36
35
  exposeModulesObjects.call( this, params );
37
36
  realtime.call( this, params );
38
37
  }
@@ -15,7 +15,6 @@ import wqDom from '@webqit/dom';
15
15
  export default function init( $params = {} ) {
16
16
  const window = this, dom = wqDom.call( window );
17
17
  if ( !window.wq ) { window.wq = {}; }
18
- // -------
19
18
  window.wq.SubscriptFunction = SubscriptFunction;
20
19
  // -------
21
20
  const params = dom.meta( 'oohtml' ).copyWithDefaults( $params, {
@@ -8,6 +8,7 @@ import init, { Observer } from './index.js';
8
8
  * @init
9
9
  */
10
10
  init.call( window );
11
+
11
12
  // As globals
12
- if ( !window.wq ) { window.wq = {}; }
13
- window.wq.Observer = Observer;
13
+ if ( !self.wq ) { self.wq = {}; }
14
+ self.wq.Observer = Observer;