Forráskód Böngészése

Deprecate js.Lib.alert().

Closes #2793.
Bruno Garcia 10 éve
szülő
commit
223ba6c270
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      std/js/Lib.hx

+ 3 - 1
std/js/Lib.hx

@@ -31,8 +31,10 @@ class Lib {
 	}
 
 	/**
-		Display an alert message box containing the given message
+		Display an alert message box containing the given message.
+		@deprecated Use Browser.window.alert() instead.
 	**/
+	@:deprecated("Lib.alert() is deprecated, use Browser.window.alert() instead")
 	public static function alert( v : Dynamic ) {
 		untyped __js__("alert")(js.Boot.__string_rec(v,""));
 	}