From e62a7df71a9dbdcc31eca953f426456f8f3b580c Mon Sep 17 00:00:00 2001 From: Nikita Gazarov Date: Wed, 15 Jan 2025 17:11:12 -0800 Subject: [PATCH] Docs: Fix bullet point formatting --- src/main/scala/com/raquo/laminar/modifiers/Binder.scala | 6 +++--- src/main/scala/com/raquo/laminar/nodes/ChildNode.scala | 2 +- src/main/scala/com/raquo/laminar/nodes/RootNode.scala | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/scala/com/raquo/laminar/modifiers/Binder.scala b/src/main/scala/com/raquo/laminar/modifiers/Binder.scala index 3d5150e7..e25b64d7 100644 --- a/src/main/scala/com/raquo/laminar/modifiers/Binder.scala +++ b/src/main/scala/com/raquo/laminar/modifiers/Binder.scala @@ -4,9 +4,9 @@ import com.raquo.airstream.ownership.DynamicSubscription import com.raquo.laminar.nodes.ReactiveElement /** Binder is a Modifier that creates a subscription when invoked. - * - Note, this Modifier is NOT idempotent: - * Calling it N times will create and bind N subscriptions - * - `onMountBind` can take care of this, see the docs + * - Note, this Modifier is NOT idempotent: + * Calling it N times will create and bind N subscriptions + * - `onMountBind` can take care of this, see the docs */ trait Binder[-El <: ReactiveElement.Base] extends Modifier[El] { diff --git a/src/main/scala/com/raquo/laminar/nodes/ChildNode.scala b/src/main/scala/com/raquo/laminar/nodes/ChildNode.scala index 49841681..d844cad5 100644 --- a/src/main/scala/com/raquo/laminar/nodes/ChildNode.scala +++ b/src/main/scala/com/raquo/laminar/nodes/ChildNode.scala @@ -20,7 +20,7 @@ with Modifier[ReactiveElement[dom.Element]] { } /** This is called as a notification, BEFORE changes to the real DOM or to the Scala DOM tree are applied. - * - Corollary: When this is called, this node's maybeParent reference has not been updated yet. + * - Corollary: When this is called, this node's maybeParent reference has not been updated yet. * * Default implementation is a noop. You can override this to implement DOM lifecycle hooks similar to * React's `componentWillUnmount`. diff --git a/src/main/scala/com/raquo/laminar/nodes/RootNode.scala b/src/main/scala/com/raquo/laminar/nodes/RootNode.scala index 54f70270..24e2e723 100644 --- a/src/main/scala/com/raquo/laminar/nodes/RootNode.scala +++ b/src/main/scala/com/raquo/laminar/nodes/RootNode.scala @@ -13,8 +13,8 @@ import scala.scalajs.js * * If you are trying to create a Laminar RootNode inside a * React.js component, make sure to call: - * - mount() when componentDidMount is due, and - * - unmount() when componentWillUnmount is due. + * - mount() when componentDidMount is due, and + * - unmount() when componentWillUnmount is due. * * Other libraries' integration follows the same principle. */