Commit Graph

14 Commits

Author SHA1 Message Date
Talia a1178b916a Update listener example 2022-07-01 09:05:58 +02:00
Talia 5e19b2d70f Add return values to listen and forget methods 2022-03-17 09:49:25 +01:00
Talia 07304c8cbd Rewrite listener 2022-03-16 16:45:48 +01:00
Talia 737fb6d155 Turn __raw into static listener.raw 2022-02-15 15:50:20 +01:00
Talia 4a473df213
Remove listener.bindContent function
Not only was this function really ugly and complicated to use, it also
does essentially the same as the new listener.text function.
2021-12-26 17:49:49 +01:00
Talia b060b5eb09
Add listener.text helper 2021-12-26 17:49:17 +01:00
Talia f612273632 Rename bind to bindContent in listener.js
This is partly to avoid confusion with the skooma `bind` function,
but also to make it clearer that only the inner content of an element is
being bound to the listener.

This function may also disappear entirely in the future if it turns out
it doesn't provide any benefits over the skooma bind function.
2021-11-25 10:08:52 +01:00
Talia 5036259d75 Add support for HTML elements to listener binding 2021-11-24 16:16:04 +01:00
Talia 945736b9a9 Add bind function to listener.js 2021-11-23 16:30:11 +01:00
Talia 13f8ba591a
Add `__raw` property to listener proxies 2021-10-19 20:37:04 +02:00
Talia b28dd09709
Add old value as third parameter to listener callbacks 2021-10-19 18:08:22 +02:00
Talia a303a83ad7
Add support for repeated callbacks to listener
It is now possible to attach several callbacks to the same prop on a
single listener object.
2021-09-13 19:21:00 +02:00
Talia 523a720196 Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00
Talia 5cf868a904 Add listener.js 2021-06-23 16:04:33 +02:00