1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00
This commit is contained in:
2025-02-28 19:53:07 +01:00
parent b53f3926b3
commit 3168f452ae
6 changed files with 29 additions and 31 deletions

View File

@ -1,3 +1,4 @@
import { isProtoFrom } from "../helpers.js";
/**
* Global signals object with default implementation
* @type {Object}
@ -39,5 +40,5 @@ export function registerReactivity(def, global= true){
* @returns {typeof signals_global} Signals implementation
*/
export function signals(_this){
return signals_global.isPrototypeOf(_this) && _this!==signals_global ? _this : signals_global;
return isProtoFrom(_this, signals_global) && _this!==signals_global ? _this : signals_global;
}