@webqit/oohtml 4.1.1-debug.5 → 4.1.1-debug.6
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/dist/main.js +1 -1
- package/dist/main.js.map +2 -2
- package/dist/main.lite.js +9 -9
- package/dist/main.lite.js.map +2 -2
- package/dist/scoped-js.js +1 -1
- package/dist/scoped-js.js.map +2 -2
- package/package.json +1 -1
- package/src/scoped-js/index.js +1 -3
package/package.json
CHANGED
package/src/scoped-js/index.js
CHANGED
|
@@ -58,7 +58,6 @@ function exposeAPIs( config ) {
|
|
|
58
58
|
|
|
59
59
|
// Script runner
|
|
60
60
|
async function execute( config, execHash ) {
|
|
61
|
-
console.log('//........', execHash);
|
|
62
61
|
const window = this, { realdom } = window.webqit;
|
|
63
62
|
const exec = _fromHash( execHash );
|
|
64
63
|
if ( !exec ) throw new Error( `Argument must be a valid exec hash.` );
|
|
@@ -69,9 +68,7 @@ async function execute( config, execHash ) {
|
|
|
69
68
|
} else if ( config.script.retention === 'dispose' ) {
|
|
70
69
|
script.textContent = `"source hidden"`;
|
|
71
70
|
} else {
|
|
72
|
-
console.log('//........1');
|
|
73
71
|
script.textContent = await compiledScript.toString();
|
|
74
|
-
console.log('//........2');
|
|
75
72
|
}
|
|
76
73
|
// Execute and save state
|
|
77
74
|
const documentRoot = script.getRootNode();
|
|
@@ -123,6 +120,7 @@ function realtime( config ) {
|
|
|
123
120
|
if ( script.scoped ) { thisContext[ config.api.scripts ].push( script ); }
|
|
124
121
|
const execHash = _toHash( { script, compiledScript, thisContext } );
|
|
125
122
|
const manualHandling = record.type === 'query' || ( script.type && !window.HTMLScriptElement.supports( script.type ) );
|
|
123
|
+
console.log('--------////', record.event);
|
|
126
124
|
if ( manualHandling ) { oohtml.Script.execute( execHash ); } else {
|
|
127
125
|
script.textContent = `webqit.oohtml.Script.execute( '${ execHash }' );`;
|
|
128
126
|
}
|