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 noticed that a recent update from https://cdn.jsdelivr.net/npm/ractive (I assume it's "latest" and gone from 0.9 to 0.10) changed how event methods are handled.
Following snippet:
<button on-click="doSomething(this)"></button>
doesn't work anymore and just throws a cryptic exception.
Instead it should apparently now be replaced with the more unambiguous:
Due to the widespread usage of calls like on-click="set('my.key.path', 'foo')", I think placing a warning if such methods don't start with a @... would be very helpful. Otherwise, people have no clue what's going on when updating.
The text was updated successfully, but these errors were encountered:
That's due to resolveInstanceMembers now defaulting to false. See migration notes. TL;DR: All instance members will, by default, explicitly need to be accessed via @this/@.
Hi,
I noticed that a recent update from
https://cdn.jsdelivr.net/npm/ractive
(I assume it's "latest" and gone from 0.9 to 0.10) changed how event methods are handled.Following snippet:
doesn't work anymore and just throws a cryptic exception.
Instead it should apparently now be replaced with the more unambiguous:
Due to the widespread usage of calls like
on-click="set('my.key.path', 'foo')"
, I think placing a warning if such methods don't start with a@...
would be very helpful. Otherwise, people have no clue what's going on when updating.The text was updated successfully, but these errors were encountered: