@maverick-js/signals
Advanced tools
Comparing version 5.11.2 to 5.11.3
@@ -96,3 +96,3 @@ import { SCOPE } from './symbols.js'; | ||
return; | ||
let head = self ? this._prevSibling ?? this[SCOPE] : this, current = this._nextSibling; | ||
let head = self ? this._prevSibling || this[SCOPE] : this, current = this._nextSibling; | ||
while (current && current[SCOPE] === this) { | ||
@@ -208,12 +208,21 @@ dispose.call(current, true); | ||
ScopeProto._disposal = null; | ||
ScopeProto.append = function(scope) { | ||
scope[SCOPE] = this; | ||
scope._prevSibling = this; | ||
if (this._nextSibling) | ||
this._nextSibling._prevSibling = scope; | ||
scope._nextSibling = this._nextSibling; | ||
this._nextSibling = scope; | ||
scope._context = scope._context === defaultContext ? this._context : { ...this._context, ...scope._context }; | ||
ScopeProto.append = function(child) { | ||
child[SCOPE] = this; | ||
child._prevSibling = this; | ||
if (this._nextSibling) { | ||
if (child._nextSibling) { | ||
let tail = child._nextSibling; | ||
while (tail._nextSibling) | ||
tail = tail._nextSibling; | ||
tail._nextSibling = this._nextSibling; | ||
this._nextSibling._prevSibling = tail; | ||
} else { | ||
child._nextSibling = this._nextSibling; | ||
this._nextSibling._prevSibling = child; | ||
} | ||
} | ||
this._nextSibling = child; | ||
child._context = child._context === defaultContext ? this._context : { ...this._context, ...child._context }; | ||
if (this._handlers) { | ||
scope._handlers = !scope._handlers ? this._handlers : [...scope._handlers, ...this._handlers]; | ||
child._handlers = !child._handlers ? this._handlers : [...child._handlers, ...this._handlers]; | ||
} | ||
@@ -220,0 +229,0 @@ }; |
@@ -96,3 +96,3 @@ import { SCOPE } from './symbols.js'; | ||
return; | ||
let head = self ? this.$ps ?? this[SCOPE] : this, current = this.$ns; | ||
let head = self ? this.$ps || this[SCOPE] : this, current = this.$ns; | ||
while (current && current[SCOPE] === this) { | ||
@@ -208,12 +208,21 @@ dispose.call(current, true); | ||
ScopeProto.$d = null; | ||
ScopeProto.append = function(scope) { | ||
scope[SCOPE] = this; | ||
scope.$ps = this; | ||
if (this.$ns) | ||
this.$ns.$ps = scope; | ||
scope.$ns = this.$ns; | ||
this.$ns = scope; | ||
scope.$cx = scope.$cx === defaultContext ? this.$cx : { ...this.$cx, ...scope.$cx }; | ||
ScopeProto.append = function(child) { | ||
child[SCOPE] = this; | ||
child.$ps = this; | ||
if (this.$ns) { | ||
if (child.$ns) { | ||
let tail = child.$ns; | ||
while (tail.$ns) | ||
tail = tail.$ns; | ||
tail.$ns = this.$ns; | ||
this.$ns.$ps = tail; | ||
} else { | ||
child.$ns = this.$ns; | ||
this.$ns.$ps = child; | ||
} | ||
} | ||
this.$ns = child; | ||
child.$cx = child.$cx === defaultContext ? this.$cx : { ...this.$cx, ...child.$cx }; | ||
if (this.$eh) { | ||
scope.$eh = !scope.$eh ? this.$eh : [...scope.$eh, ...this.$eh]; | ||
child.$eh = !child.$eh ? this.$eh : [...child.$eh, ...this.$eh]; | ||
} | ||
@@ -220,0 +229,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.11.2", | ||
"version": "5.11.3", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "dist/types/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64525
1419