Fixed start up crash on older OS version (11.5)

This commit is contained in:
Brahim Hadriche committed 2024-12-23 12:13:35 -05:00
1 parent 010d86f34e
commit 2c1306c563
6 files changed
+26 -4

No files matched your search

@@ -0,0 +1,12 @@
namespace MessagePortUtils
function ObserveFieldScopedExSafe(node as dynamic, field as string, port as dynamic)
' ObserveFieldScopedEx was added in 12.0
if FindMemberFunction(node, "ObserveFieldScopedEx") <> invalid
node.ObserveFieldScopedEx(field, port)
else
node.ObserveFieldScoped(field, port)
end if
end function
end namespace