mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-20 07:54:50 +00:00
Scene save operations (in-place overwrite vs copy) (#126)
This commit is contained in:
@@ -11,6 +11,9 @@ function isRef<T>(refOrValue: Ref<T> | T): refOrValue is Ref<T> {
|
||||
if (!refOrValue || typeof refOrValue !== "object")
|
||||
return false;
|
||||
|
||||
if (refOrValue instanceof Element)
|
||||
return false;
|
||||
|
||||
const keys = Object.keys(refOrValue);
|
||||
return keys.length === 1 && keys[0] === "value"
|
||||
return keys.length === 0 || (keys.length === 1 && keys[0] === "value")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user