These are chat archives for ThoughtWorksInc/Binding.scala

26th
Oct 2016
杨博 (Yang Bo)
@Atry
Oct 26 2016 03:04
Yes. Though it is too trivial to affect performance.
杨博 (Yang Bo)
@Atry
Oct 26 2016 03:15
You may also notice that handler is a scala.Function1, which requires a js.Function1 wrapper in order to assign it to onchange
val handler: js.Function1[Event, Unit] = { (e: Event) => 
  ...
}
If SAM type is enabled, explicitly marking handler a js.Function1 would avoid the wrapper.