Skip to content

Commit

Permalink
Minor features for 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Jul 30, 2014
1 parent 4ff4776 commit b9e2f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/japgolly/scalajs/react/React.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ trait ReactChildren extends Object {
def forEach(c: PropsChildren, fn: js.Function2[VDom, Number, JAny]): Unit = ???
/** WARNING: Throws an exception is exact number of children is not 1. */
def only(c: PropsChildren): VDom = ???
def count(c: PropsChildren): Number = ???
}

/** A React DOM representation of HTML. Could be React.DOM output, or a React component. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ object ReactVDom extends Bundle[VDomBuilder, ReactOutput, ReactFragT] {
val onDragOver = "onDragOver".attr
val onDragLeave = "onDragLeave".attr
val onDrop = "onDrop".attr
val onBeforeInput = "onBeforeInput".attr
}

implicit final class ReactAttrExt(val a: Attr) extends AnyVal {
Expand Down

0 comments on commit b9e2f72

Please sign in to comment.