mount-observer 0.0.57 → 0.0.58
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/Newish.js +2 -2
- package/RootMutObs.js +0 -1
- package/RootMutObs.ts +0 -1
- package/package.json +1 -1
package/Newish.js
CHANGED
|
@@ -36,7 +36,7 @@ export class Newish {
|
|
|
36
36
|
this.queue.push(initPropVals);
|
|
37
37
|
const ce = document.createElement(itemscope);
|
|
38
38
|
if ('attachedCallback' in ce && typeof ce.attachedCallback === 'function') {
|
|
39
|
-
await ce.attachedCallback(enhancedElement);
|
|
39
|
+
await ce.attachedCallback(enhancedElement, this.#options);
|
|
40
40
|
}
|
|
41
41
|
this.#ce = ce;
|
|
42
42
|
const self = this;
|
|
@@ -74,7 +74,7 @@ export class Newish {
|
|
|
74
74
|
continue;
|
|
75
75
|
const itemrefElement = rn.getElementById(id);
|
|
76
76
|
if (itemrefElement) {
|
|
77
|
-
this.#ce.inScopeCallback(itemrefElement);
|
|
77
|
+
this.#ce.inScopeCallback(itemrefElement, this.#options);
|
|
78
78
|
this.#alreadyAttached.add(id);
|
|
79
79
|
}
|
|
80
80
|
}
|
package/RootMutObs.js
CHANGED
|
@@ -4,7 +4,6 @@ export class RootMutObs extends EventTarget {
|
|
|
4
4
|
constructor(rootNode, options) {
|
|
5
5
|
super();
|
|
6
6
|
this.#idleTimeout = options?.idleTimeout ?? 30;
|
|
7
|
-
console.log(this.#idleTimeout);
|
|
8
7
|
this.#mutationObserver = new MutationObserver(mutationRecords => {
|
|
9
8
|
this.dispatchEvent(new MutationEvent(mutationRecords));
|
|
10
9
|
this.#triggerIsIdle();
|
package/RootMutObs.ts
CHANGED
|
@@ -6,7 +6,6 @@ export class RootMutObs extends EventTarget{
|
|
|
6
6
|
constructor(rootNode: Node, options: MountInit ){
|
|
7
7
|
super();
|
|
8
8
|
this.#idleTimeout = options?.idleTimeout ?? 30;
|
|
9
|
-
console.log(this.#idleTimeout);
|
|
10
9
|
this.#mutationObserver = new MutationObserver(mutationRecords => {
|
|
11
10
|
this.dispatchEvent(new MutationEvent(mutationRecords));
|
|
12
11
|
this.#triggerIsIdle();
|