This problem only manifests itself when my app runs through the KBX. Running it in a bookmarklet works fine. I used to be able to do this, but it doesn't work any more.
Here's what I have. There's an onclick
attribute on a <p>
tag that calls a JavaScript function:
<p conclick="window.a163x134_log(this); return false;"></p>
Here's what my function looks like:
emit <|
window.a163x134_log = function(obj) {
// Do something
};
|>;
I've tried using a regular function name (not attached to window
) and namespacing it with KOBJ
. Neither of those works. The error message I get reads "Uncaught TypeError: Object [object DOMWindow] has no method 'a163x134_log'".
Is this a bug or do I need to change something in my code?