We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3223e3b commit 7364647Copy full SHA for 7364647
core/src/main/scala/japgolly/scalajs/react/vdom/Extra.scala
@@ -17,8 +17,9 @@ object Extra {
17
}
18
19
final class AttrExt(val _a: Attr) extends AnyVal {
20
- @inline def runs(thunk: => Unit) = _a := ((() => thunk): js.Function)
21
- @inline def -->(thunk: => Unit) = runs(thunk)
+ @deprecated("[attr runs callback] will be removed in 0.8.0. Use [attr --> callback].", "v0.7.0")
+ @inline def runs(callback: => Unit) = -->(callback)
22
+ @inline def -->(callback: => Unit) = _a := ((() => callback): js.Function)
23
@inline def ==>[N <: dom.Node, E <: SyntheticEvent[N]](eventHandler: E => Unit) = _a := (eventHandler: js.Function)
24
25
0 commit comments