diff --git a/build.sbt b/build.sbt index 1f11a83b3..12fa211ec 100644 --- a/build.sbt +++ b/build.sbt @@ -15,7 +15,7 @@ scalaVersion := "2.11.6" crossScalaVersions := Seq("2.10.5", "2.11.6") -scalacOptions ++= Seq("-deprecation", "-feature") +scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings") homepage := Some(url("http://scala-js.org/")) diff --git a/src/main/scala/org/scalajs/dom/raw/Audio.scala b/src/main/scala/org/scalajs/dom/raw/Audio.scala index 23ce18adc..c94cb9a81 100644 --- a/src/main/scala/org/scalajs/dom/raw/Audio.scala +++ b/src/main/scala/org/scalajs/dom/raw/Audio.scala @@ -230,6 +230,7 @@ class OfflineAudioContext(numOfChannels: Int, length: Int, sampleRate: Int) exte /** Is an EventHandler called when the processing is terminated, that is * when the complete event (of type OfflineAudioCompletionEvent) is raised. */ + @deprecated("Use the promise version of OfflineAudioContext.startRendering instead.", "forever") var oncomplete: js.Function1[OfflineAudioCompletionEvent, _] = js.native } @@ -1250,7 +1251,6 @@ trait AudioBuffer extends js.Object { * that occur when the processing of an OfflineAudioContext is terminated. * The complete event implements this interface. */ -@deprecated("Use the promise version of OfflineAudioContext.startRendering instead.", "forever") trait OfflineAudioCompletionEvent extends Event { /** The buffer containing the result of the processing of an * OfflineAudioContext.