@but212/atom-effect-jquery 0.15.3 → 0.16.0
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/atom-effect-jquery.min.js +1 -1
- package/dist/atom-effect-jquery.min.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -9
- package/dist/index.mjs +1100 -1130
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -39,8 +39,7 @@ export declare interface BindingOptions<T> {
|
|
|
39
39
|
* - Efficient tree traversal for cleanup.
|
|
40
40
|
*/
|
|
41
41
|
declare class BindingRegistry {
|
|
42
|
-
private
|
|
43
|
-
private cleanups;
|
|
42
|
+
private records;
|
|
44
43
|
private boundElements;
|
|
45
44
|
private preservedNodes;
|
|
46
45
|
private ignoredNodes;
|
|
@@ -48,6 +47,7 @@ declare class BindingRegistry {
|
|
|
48
47
|
isKept(node: Node): boolean;
|
|
49
48
|
markIgnored(node: Node): void;
|
|
50
49
|
isIgnored(node: Node): boolean;
|
|
50
|
+
private _getOrCreateRecord;
|
|
51
51
|
trackEffect(el: Element, fx: EffectObject): void;
|
|
52
52
|
trackCleanup(el: Element, fn: () => void): void;
|
|
53
53
|
hasBind(el: Element): boolean;
|
|
@@ -92,13 +92,6 @@ export declare const enablejQueryBatching: typeof enablejQueryOverrides;
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Patches jQuery methods to integrate with the reactive system.
|
|
95
|
-
*
|
|
96
|
-
* 1. Lifecycle Overrides (.remove, .empty, .detach):
|
|
97
|
-
* - Automatically cleans up effects/bindings when elements are removed.
|
|
98
|
-
* - Preserves bindings when elements are detached.
|
|
99
|
-
*
|
|
100
|
-
* 2. Event Batching (.on, .off):
|
|
101
|
-
* - Wraps event handlers in batch() to optimize rendering.
|
|
102
95
|
*/
|
|
103
96
|
export declare function enablejQueryOverrides(): void;
|
|
104
97
|
|