weakRef within custom methods

Hi guys,
Does anyone know why a weakref created within an extension or custom method always return None, but not within an Event, such as 'actionPerformed' in the screenshot below?

I'm just wondering...

image

It's hard to say for sure without diving all the way in, but this is likely just because of the nature of the different lifecycles here. The component is long-lived, and the component events are likely handled by a script environment 'attached' to the component, but the extension functions are compiled ad-hoc and not attached to any existing lifecycle.

Ah! Well at least it's a satisfying explanation, thank you.