You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/10-destructuring-assignment/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
개발을 하다 보면 함수에 객체나 배열을 전달해야 하는 경우가 생기곤 합니다. 가끔은 객체나 배열에 저장된 데이터 전체가 아닌 일부만 필요한 경우가 생기기도 하죠.
8
8
9
9
이럴 때 객체나 배열을 변수로 '분해'할 수 있게 해주는 특별한 문법인 *구조 분해 할당(destructuring assignment)* 을 사용할 수 있습니다. 이 외에도 함수의 매개변수가 많거나 매개변수 기본값이 필요한 경우 등에서 구조 분해(destructuring)는 그 진가를 발휘합니다.
10
+
*Destructuring assignment* is a special syntax that allows us to "unpack" arrays or objects into a bunch of variables, as sometimes that's more convenient.
Copy file name to clipboardExpand all lines: 3-frames-and-windows/01-popup-windows/article.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Settings for `params`:
87
87
88
88
There is also a number of less supported browser-specific features, which are usually not used. Check <ahref="https://developer.mozilla.org/en/DOM/window.open">window.open in MDN</a> for examples.
89
89
90
-
## Example: a minimalistic window
90
+
## Example: a minimalistic window
91
91
92
92
Let's open a window with minimal set of features, just to see which of them browser allows to disable:
93
93
@@ -120,7 +120,7 @@ Rules for omitted settings:
120
120
121
121
## Accessing popup from window
122
122
123
-
The `open` call returns a reference to the new window. It can be used to manipulate it's properties, change location and even more.
123
+
The `open` call returns a reference to the new window. It can be used to manipulate its properties, change location and even more.
124
124
125
125
In this example, we generate popup content from JavaScript:
126
126
@@ -239,7 +239,7 @@ There's also `window.onscroll` event.
239
239
240
240
Theoretically, there are `window.focus()` and `window.blur()` methods to focus/unfocus on a window. And there are also `focus/blur` events that allow to catch the moment when the visitor focuses on a window and switches elsewhere.
241
241
242
-
Although, in practice they are severely limited, because in the past evil pages abused them.
242
+
Although, in practice they are severely limited, because in the past evil pages abused them.
243
243
244
244
For instance, look at this code:
245
245
@@ -257,10 +257,10 @@ Still, there are some use cases when such calls do work and can be useful.
257
257
258
258
For instance:
259
259
260
-
- When we open a popup, it's might be a good idea to run a`newWindow.focus()` on it. Just in case, for some OS/browser combinations it ensures that the user is in the new window now.
260
+
- When we open a popup, it might be a good idea to run `newWindow.focus()` on it. Just in case, for some OS/browser combinations it ensures that the user is in the new window now.
261
261
- If we want to track when a visitor actually uses our web-app, we can track `window.onfocus/onblur`. That allows us to suspend/resume in-page activities, animations etc. But please note that the `blur` event means that the visitor switched out from the window, but they still may observe it. The window is in the background, but still may be visible.
262
262
263
-
## Summary
263
+
## Summary
264
264
265
265
Popup windows are used rarely, as there are alternatives: loading and displaying information in-page, or in iframe.
Copy file name to clipboardExpand all lines: 3-frames-and-windows/03-cross-window-communication/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@ Arguments:
268
268
`targetOrigin`
269
269
: Specifies the origin for the target window, so that only a window from the given origin will get the message.
270
270
271
-
The `targetOrigin` is a safety measure. Remember, if the target window comes from another origin, we can't read it's`location` in the sender window. So we can't be sure which site is open in the intended window right now: the user could navigate away, and the sender window has no idea about it.
271
+
The `targetOrigin` is a safety measure. Remember, if the target window comes from another origin, we can't read its`location` in the sender window. So we can't be sure which site is open in the intended window right now: the user could navigate away, and the sender window has no idea about it.
272
272
273
273
Specifying `targetOrigin` ensures that the window only receives the data if it's still at the right site. Important when the data is sensitive.
Copy file name to clipboardExpand all lines: 5-network/06-fetch-api/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ The `integrity` option allows to check if the response matches the known-ahead c
179
179
180
180
As described in the [specification](https://w3c.github.io/webappsec-subresource-integrity/), supported hash-functions are SHA-256, SHA-384, and SHA-512, there might be others depending on a browser.
181
181
182
-
For example, we're downloading a file, and we know that it's SHA-256 checksum is "abcdef" (a real checksum is longer, of course).
182
+
For example, we're downloading a file, and we know that its SHA-256 checksum is "abcdef" (a real checksum is longer, of course).
183
183
184
184
We can put it in the `integrity` option, like this:
0 commit comments