Переглянути джерело

js.html.Location.toString() (closes #6824)

Alexander Kuzmenko 7 роки тому
батько
коміт
6514333ea7
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      std/js/html/Location.hx

+ 5 - 0
std/js/html/Location.hx

@@ -98,4 +98,9 @@ extern class Location
 		Reloads the resource from the current URL. Its optional unique parameter is a `Boolean`, which, when it is `true`, causes the page to always be reloaded from the server. If it is `false` or not specified, the browser may reload the page from its cache.
 	**/
 	function reload( ?forceget : Bool = false ) : Void;
+
+	/**
+		Returns a string containing the whole URL.
+	**/
+	function toString() : String;
 }