We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c8b50 commit 3a92b68Copy full SHA for 3a92b68
src/components/widgets/lively-script.js
@@ -32,6 +32,13 @@ export default class LivelyScript extends Morph {
32
33
// evalute script not when the component is initialized, but when it is actually in the DOM
34
async attachedCallback() {
35
+
36
+ // we get exectuted to often?
37
+ if (this.lastParentElement == this.parentElement) return
38
+ this.lastParentElement = this.parentElement
39
+ // lively.notify("execute " + this.textContent)
40
41
42
// console.log("SCRIPT attached ", lively.findWorldContext(this))
43
var src = this.textContent
44
// console.log("LivelyScript>>initialize " + src)
0 commit comments