Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change Storage#length to a def instead of var
  • Loading branch information
zetashift committed Nov 2, 2022
commit 237f2ef12c9a44680c3e346e1360272ea67b6ebc
2 changes: 1 addition & 1 deletion api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25109,7 +25109,7 @@ StereoPannerNode[JT] def removeEventListener[T <: Event](`type`: String, listene
Storage[JC] def clear(): Unit
Storage[JC] def getItem(key: String): String
Storage[JC] def key(index: Int): String
Storage[JC] var length: Int
Storage[JC] def length: Int
Storage[JC] def removeItem(key: String): Unit
Storage[JC] def setItem(key: String, data: String): Unit
StorageEstimate[JT] val quota: Double
Expand Down
2 changes: 1 addition & 1 deletion api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25109,7 +25109,7 @@ StereoPannerNode[JT] def removeEventListener[T <: Event](`type`: String, listene
Storage[JC] def clear(): Unit
Storage[JC] def getItem(key: String): String
Storage[JC] def key(index: Int): String
Storage[JC] var length: Int
Storage[JC] def length: Int
Storage[JC] def removeItem(key: String): Unit
Storage[JC] def setItem(key: String, data: String): Unit
StorageEstimate[JT] val quota: Double
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/Storage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import scala.scalajs.js.annotation._
@js.native
@JSGlobal
class Storage extends js.Object {
var length: Int = js.native
def length: Int = js.native

def getItem(key: String): String = js.native

Expand Down