We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c952e9a commit e725f1aCopy full SHA for e725f1a
dom/src/main/scala/org/scalajs/dom/EventSource.scala
@@ -18,7 +18,9 @@ import scala.scalajs.js.annotation._
18
*/
19
@js.native
20
@JSGlobal
21
-class EventSource(url: String, configuration: EventSourceInit = js.native) extends EventTarget {
+class EventSource private[this] extends EventTarget {
22
+
23
+ def this(url: String, configuration: EventSourceInit = js.native) = this()
24
25
/** The url attribute must return the absolute URL that resulted from resolving the value that was passed to the
26
* constructor. W3C 2012
0 commit comments