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'm using Hyperscript 0.9.12 and attempting to do something similar to what the Draggable example does. Default to "me" if a specific click target is not passed in.
The init block does not work.
<script type="text/hyperscript">
behavior alertMe(clickElement)
init
if no clickElement set the clickElement to me
end
on click from clickElement
call alert('behavior is working!')
end
end
</script>
<!-- Works: -->
<i _="install alertMe(clickElement: me)">click me</i>
<!-- Does not work: -->
<i _="install alertMe()">click me</i>
The text was updated successfully, but these errors were encountered:
I'm using Hyperscript 0.9.12 and attempting to do something similar to what the Draggable example does. Default to "me" if a specific click target is not passed in.
The init block does not work.
The text was updated successfully, but these errors were encountered: