File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -30564,7 +30564,7 @@ class Window extends EventTarget
30564
30564
// TODO: consider forcing users to do: window.location.assign('string').
30565
30565
/**
30566
30566
* Sets the window's location, which causes the browser to navigate to the new
30567
- * location. [value] may be a Location object or a String.
30567
+ * location.
30568
30568
*/
30569
30569
set location(value) {
30570
30570
_location = value;
@@ -34587,12 +34587,14 @@ abstract class WindowBase implements EventTarget {
34587
34587
* var other = window.open('http://www.example.com', 'foo');
34588
34588
* // Closes other window, as it is script-closeable.
34589
34589
* other.close();
34590
- * print(other.closed() ); // 'true'
34590
+ * print(other.closed); // 'true'
34591
34591
*
34592
- * window.location('http://www.mysite.com', 'foo');
34592
+ * var newLocation = window.location
34593
+ * ..href = 'http://www.mysite.com';
34594
+ * window.location = newLocation;
34593
34595
* // Does not close this window, as the history has changed.
34594
34596
* window.close();
34595
- * print(window.closed() ); // 'false'
34597
+ * print(window.closed); // 'false'
34596
34598
*
34597
34599
* See also:
34598
34600
*
Original file line number Diff line number Diff line change @@ -116,12 +116,14 @@ abstract class WindowBase implements EventTarget {
116
116
* var other = window.open('http://www.example.com', 'foo');
117
117
* // Closes other window, as it is script-closeable.
118
118
* other.close();
119
- * print(other.closed() ); // 'true'
119
+ * print(other.closed); // 'true'
120
120
*
121
- * window.location('http://www.mysite.com', 'foo');
121
+ * var newLocation = window.location
122
+ * ..href = 'http://www.mysite.com';
123
+ * window.location = newLocation;
122
124
* // Does not close this window, as the history has changed.
123
125
* window.close();
124
- * print(window.closed() ); // 'false'
126
+ * print(window.closed); // 'false'
125
127
*
126
128
* See also:
127
129
*
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
76
76
// TODO: consider forcing users to do: window.location.assign('string').
77
77
/**
78
78
* Sets the window's location, which causes the browser to navigate to the new
79
- * location. [value] may be a Location object or a String.
79
+ * location.
80
80
*/
81
81
set location(value) {
82
82
_location = value;
You can’t perform that action at this time.
0 commit comments