Skip to content

Commit ac754a5

Browse files
Apply suggestions from code review
Co-authored-by: Arman Bilge <armanbilge@gmail.com>
1 parent d84ef7d commit ac754a5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait ResizeObserverEntry extends js.Object {
1414
*
1515
* MDN
1616
*/
17-
def target: Node = js.native
17+
def target: Element = js.native
1818

1919
/** An array containing objects with the new border box size of the observed element. The array is necessary to
2020
* support elements that have multiple fragments, which occur in multi-column scenarios.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ package org.scalajs.dom
22

33
import scala.scalajs.js
44

5-
@js.native
65
trait ResizeObserverOptions extends js.Object {
7-
var box: js.UndefOr[String] = js.native
6+
var box: js.UndefOr[String] = js.undefined
87
}
98

109
/** Factory for [[ResizeObserverOptions]] objects. */

0 commit comments

Comments
 (0)