Unbind a function from an object

how do i remove a function from an element after it is being clicked?
it should be not clickable then.
i know how to set a transparent object above.

i tried unbind(), but i guess you have to use bind() before.
i tried remove(), but then the whole element disappears.
maby someone has a more infos how to use this within hype?
thanks.

if you’ve assigned the function via the hype UI’s behaviours i would simply set the style pointerEvents to none or use aglobal var to store the info if it’s been executed once …

1 Like

thanks @h_classen!
this is working:
for (var i=0; i < sperre.length; i++) { $(sperre[i]).css({ "pointer-events": "none"}); };
in every browser. :innocent: