Exposed function not connecting or not firing properly #55
Replies: 3 comments 1 reply
-
What I am wondering is, do I need to arrange |
Beta Was this translation helpful? Give feedback.
-
The expected usage is a single The scenario you've described is not one that I've ever tested. This is not the standard use case for |
Beta Was this translation helpful? Give feedback.
-
I see, one instance per browser instance. So, ostensibly, I should rather position such a thing as a Yes, I have generally been keeping one context per function or method body, not as you described... |
Beta Was this translation helpful? Give feedback.
-
Trying to connect a click event on an
<a/>
element.I am positive the
Context
is good, and I debugged in and know I have a valid anchor element instance.The expose function is not failing for any reason, and apparently the element event connection is being made.
But I get no callback occur back into my code for whatever reason.
First, I gather I need to maintain the context instance; I am. And maintain that instance until the next Browser address change, at which point I dispose of the old one, which I presume is also like clearing the exposed functions cache, and generate a new context on the new page. I rinse and repeat the whole process, connecting the function, etc.
I'm assuming it is
"click"
at least according to this documentation, but maybe I am missing something there. Or perhaps I also need to maintain the anchor element instance once I have obtained that as well, which would be understandable, in addition to its context.Beta Was this translation helpful? Give feedback.
All reactions