|
|
|
|
|
by asiando
1972 days ago
|
|
This applies to everything in the browser honestly. Why can’t I bind a variable to the DOM natively? I want the variable X to match the value of <input> and vice versa without having to set up a bunch of listeners and hope they don’t go in a loop. |
|
seriously though, why not just write a simple wrapper around event listeners + maybe some proxy magic and get the semantics you prefer? or find a library that does that, i'm sure there's a bunch out there