소스 검색

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;
 }