Skip to content

Commit 4b921fd

Browse files
Merge pull request #1888 from HoonDongKang/docs/#1876-arraybuffer-binary-arrays
Part 3. 2.1 ArrayBuffer, binary arrays 번역(#1876)
2 parents 8e42da7 + 30cac10 commit 4b921fd

27 files changed

Lines changed: 157 additions & 157 deletions

File tree

1-js/05-data-types/10-destructuring-assignment/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
개발을 하다 보면 함수에 객체나 배열을 전달해야 하는 경우가 생기곤 합니다. 가끔은 객체나 배열에 저장된 데이터 전체가 아닌 일부만 필요한 경우가 생기기도 하죠.
88

99
이럴 때 객체나 배열을 변수로 '분해'할 수 있게 해주는 특별한 문법인 *구조 분해 할당(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.
1011

1112
## 배열 분해하기
1213

@@ -69,7 +70,6 @@ alert( title ); // Consul
6970
let [a, b, c] = "abc"; // ["a", "b", "c"]
7071
let [one, two, three] = new Set([1, 2, 3]);
7172
```
72-
7373
````
7474

7575

1-js/11-async/01-callbacks/01-animate-circle-callback/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
text-align: center;
1111
}
1212
.circle {
13-
transition-property: width, height, margin-left, margin-top;
13+
transition-property: width, height;
1414
transition-duration: 2s;
1515
position: fixed;
1616
transform: translateX(-50%) translateY(-50%);

1-js/11-async/02-promise-basics/03-animate-circle-promise/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
text-align: center;
1111
}
1212
.circle {
13-
transition-property: width, height, margin-left, margin-top;
13+
transition-property: width, height;
1414
transition-duration: 2s;
1515
position: fixed;
1616
transform: translateX(-50%) translateY(-50%);

1-js/99-js-misc/01-proxy/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ We use `WeakMap` instead of `Map` here because it won't block garbage collection
994994
## References
995995

996996
- Specification: [Proxy](https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots).
997-
- MDN: [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy).
997+
- MDN: [Proxy](mdn:/JavaScript/Reference/Global_Objects/Proxy).
998998

999999
## Summary
10001000

@@ -1016,13 +1016,13 @@ We can trap:
10161016
- Reading (`get`), writing (`set`), deleting (`deleteProperty`) a property (even a non-existing one).
10171017
- Calling a function (`apply` trap).
10181018
- The `new` operator (`construct` trap).
1019-
- Many other operations (the full list is at the beginning of the article and in the [docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy)).
1019+
- Many other operations (the full list is at the beginning of the article and in the [docs](mdn:/JavaScript/Reference/Global_Objects/Proxy)).
10201020

10211021
That allows us to create "virtual" properties and methods, implement default values, observable objects, function decorators and so much more.
10221022

10231023
We can also wrap an object multiple times in different proxies, decorating it with various aspects of functionality.
10241024

1025-
The [Reflect](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect) API is designed to complement [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy). For any `Proxy` trap, there's a `Reflect` call with same arguments. We should use those to forward calls to target objects.
1025+
The [Reflect](mdn:/JavaScript/Reference/Global_Objects/Reflect) API is designed to complement [Proxy](mdn:/JavaScript/Reference/Global_Objects/Proxy). For any `Proxy` trap, there's a `Reflect` call with same arguments. We should use those to forward calls to target objects.
10261026

10271027
Proxies have some limitations:
10281028

1-js/99-js-misc/05-bigint/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,5 @@ We can use such JSBI code "as is" for engines that don't support bigints and for
126126

127127
## 참고 자료
128128

129-
- [MDN docs on BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt).
129+
- [MDN docs on BigInt](mdn:/JavaScript/Reference/Global_Objects/BigInt).
130130
- [Specification](https://tc39.es/ecma262/#sec-bigint-objects).

2-ui/1-document/09-size-and-scroll/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
width: 300px;
1818
height: 200px;
1919
border: 25px solid #E8C48F;
20-
padding: 20px;
21-
overflow: auto;
20+
padding: 20px;
21+
overflow: auto;
2222
}
2323
</style>
2424
```

2-ui/2-events/01-introduction-browser-events/07-carousel/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div id="carousel" class="carousel">
1111
<button class="arrow prev"></button>
1212
<div class="gallery">
13-
<ul class="images">
13+
<ul>
1414
<li><img src="https://en.js.cx/carousel/1.png"></li>
1515
<li><img src="https://en.js.cx/carousel/2.png"></li>
1616
<li><img src="https://en.js.cx/carousel/3.png"></li>

2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/solution.view/hoverIntent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class HoverIntent {
8888
if (speed < this.sensitivity) {
8989
clearInterval(this.checkSpeedInterval);
9090
this.isHover = true;
91-
this.over.call(this.elem, event);
91+
this.over.call(this.elem);
9292
} else {
9393
// speed fast, remember new coordinates as the previous ones
9494
this.prevX = this.lastX;

2-ui/99-ui-misc/02-selection-range/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Click buttons to run methods on the selection, "resetExample" to reset it.
259259
</script>
260260
```
261261

262-
There also exist methods to compare ranges, but these are rarely used. When you need them, please refer to the [spec](https://dom.spec.whatwg.org/#interface-range) or [MDN manual](https://developer.mozilla.org/en-US/docs/Web/API/Range).
262+
There also exist methods to compare ranges, but these are rarely used. When you need them, please refer to the [spec](https://dom.spec.whatwg.org/#interface-range) or [MDN manual](mdn:/api/Range).
263263

264264

265265
## Selection

3-frames-and-windows/01-popup-windows/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Settings for `params`:
8787

8888
There is also a number of less supported browser-specific features, which are usually not used. Check <a href="https://developer.mozilla.org/en/DOM/window.open">window.open in MDN</a> for examples.
8989

90-
## Example: a minimalistic window
90+
## Example: a minimalistic window
9191

9292
Let's open a window with minimal set of features, just to see which of them browser allows to disable:
9393

@@ -120,7 +120,7 @@ Rules for omitted settings:
120120

121121
## Accessing popup from window
122122

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.
124124

125125
In this example, we generate popup content from JavaScript:
126126

@@ -239,7 +239,7 @@ There's also `window.onscroll` event.
239239

240240
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.
241241

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.
243243

244244
For instance, look at this code:
245245

@@ -257,10 +257,10 @@ Still, there are some use cases when such calls do work and can be useful.
257257

258258
For instance:
259259

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.
261261
- 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.
262262

263-
## Summary
263+
## Summary
264264

265265
Popup windows are used rarely, as there are alternatives: loading and displaying information in-page, or in iframe.
266266

0 commit comments

Comments
 (0)