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
The second line doesn't compile, and the compiler tells us: value map is not a member of org.scalajs.dom.NodeListOf[org.scalajs.dom.raw.HTMLImageElement]. If I import org.scalajs.dom.ext._, I'd expect my NodeListOf to be "pimped", but apparently PimpedNodeList only applies on NodeList, and not on NodeListOf. You can try this in this scastie.
Am I missing something, or is there something incorrect in the documentation? (Or both!)
The text was updated successfully, but these errors were encountered:
Following the instructions on From ES6 to Scala: Advanced, I do:
The second line doesn't compile, and the compiler tells us:
value map is not a member of org.scalajs.dom.NodeListOf[org.scalajs.dom.raw.HTMLImageElement]
. If Iimport org.scalajs.dom.ext._
, I'd expect myNodeListOf
to be "pimped", but apparentlyPimpedNodeList
only applies onNodeList
, and not onNodeListOf
. You can try this in this scastie.Am I missing something, or is there something incorrect in the documentation? (Or both!)
The text was updated successfully, but these errors were encountered: