You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to execute a function which belongs to the weak referenced object inside the callback, for example, obj.dispose(). Is it possible?
The callback passed in weak(Object obj [, Function callback]) does not receive any argument when it is invoked, while referencing the obj inside the callback directly will prevent the callback being invoked as the obj still has active reference and cannot be GCed.
The text was updated successfully, but these errors were encountered:
I tried to execute a function which belongs to the weak referenced object inside the callback, for example,
obj.dispose()
. Is it possible?The callback passed in
weak(Object obj [, Function callback])
does not receive any argument when it is invoked, while referencing theobj
inside the callback directly will prevent the callback being invoked as theobj
still has active reference and cannot be GCed.The text was updated successfully, but these errors were encountered: