Eric A. Meyer on Nostr: Over the weekend, I learned that in modern JS, you can just make up your own events ...
Over the weekend, I learned that in modern JS, you can just make up your own events and create listeners to respond to them, and *nobody can stop you*. Like, you can add a listener for an event you call `control-reset` or `text-edit` or `steve` or *whatever*, and then when something on the page dispatches that event at the listener, the listener will act! It’s event anarchy!
Published at
2023-11-13 15:56:31Event JSON
{
"id": "3a331f3c360dab4a70a7a5a251dc30452cb790a7af6544790a59d8b14957a1d4",
"pubkey": "6a32e47d258bb692f15a085dbdcb60ed381bb2921af6b4db1107a7ea545109cc",
"created_at": 1699890991,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/Meyerweb/statuses/111404056003708551",
"activitypub"
]
],
"content": "Over the weekend, I learned that in modern JS, you can just make up your own events and create listeners to respond to them, and *nobody can stop you*. Like, you can add a listener for an event you call `control-reset` or `text-edit` or `steve` or *whatever*, and then when something on the page dispatches that event at the listener, the listener will act! It’s event anarchy!",
"sig": "2f78e3a321f51b83c859deca0936d514508d53e5f93328d66763c2e9815a97ced901a1a53636dfdd56060980027d608084454c4c1589ac7b3d767b9db1ae994b"
}