Skip to content

Commit 7081bbd

Browse files
committed
Fix scaladoc linking
1 parent cffbb17 commit 7081bbd

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

dom/src/main/scala/org/scalajs/dom/Lock.scala

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ import scala.scalajs.js
44
import scala.scalajs.js.annotation.JSGlobal
55

66
/** The [[Lock]] interface of the Web Locks API provides the name and mode of a lock. This may be a newly requested lock
7-
* that is received in the callback to [[LockManager.request]], or a record of an active or queued lock returned by
8-
* [[LockManager.query]].
7+
* that is received in the callback to [[LockManager.request(name:String,callback:* LockManager.request]], or a record
8+
* of an active or queued lock returned by [[LockManager.query]].
99
*/
1010
@js.native
1111
@JSGlobal
1212
class Lock private[this] extends js.Object {
1313

14-
/** The access mode passed to [[LockManager.request]] when the lock was requested. */
14+
/** The access mode passed to [[LockManager.request(name:String,callback:* LockManager.request]] when the lock was
15+
* requested.
16+
*/
1517
def mode: LockMode = js.native
1618

17-
/** The name passed to [[LockManager.request]] when the lock was requested. */
19+
/** The name passed to [[LockManager.request(name:String,callback:* LockManager.request]] when the lock was requested.
20+
*/
1821
def name: String = js.native
1922

2023
}

dom/src/main/scala/org/scalajs/dom/LockManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LockManager private[this] extends js.Object {
1414
def query(): js.Promise[LockManagerSnapshot] = js.native
1515

1616
/** Requests a [[Lock]] object with parameters specifying its name and characteristics. The requested [[Lock]] is
17-
* passed to a callback, while the function itself returns a [[js.Promise]] that resolves with `undefined`.
17+
* passed to a callback, while the function itself returns a `Promise` that resolves with `undefined`.
1818
*/
1919
def request(name: String, callback: js.Function1[Lock, js.Promise[Unit]]): js.Promise[Unit] = js.native
2020

0 commit comments

Comments
 (0)