Skip to content

Commit

Permalink
objects-classes: tweaking footnote citation style for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Jul 31, 2022
1 parent 0bb279a commit d1bb48a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion objects-classes/ch1.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,4 +706,4 @@ The most common usage of objects is as containers for multiple values. We create
But there's a lot more to objects than just static collections of property names and values. In the next chapter, we'll dive under the hood to look at how they actually work.
[^structuredClone]: "Structured Clone Algorithm", HTML Specification, https://html.spec.whatwg.org/multipage/structured-data.html#structured-cloning, Accessed July 2022.
[^structuredClone]: "Structured Clone Algorithm", HTML Specification; https://html.spec.whatwg.org/multipage/structured-data.html#structured-cloning ; Accessed July 2022
4 changes: 2 additions & 2 deletions objects-classes/ch2.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,6 @@ The way object and their properties work in JS is referred to as the "metaobject

Prototypes are internal linkages between objects that allow property or method access against one object -- if the property/method requested is absent -- to be handled by "delegating" that access lookup to another object. When the delegation involves a method, the context for the method to run in is shared from the initial object to the target object via the `this` keyword.

[^mop]: "Metaobject", Wikipedia, https://en.wikipedia.org/wiki/Metaobject, Accessed July 2022.
[^mop]: "Metaobject", Wikipedia; https://en.wikipedia.org/wiki/Metaobject ; Accessed July 2022.

[^specApB]: ECMAScript 2021 Language Specification, Appendix B: Additional ECMAScript Features for Web Browsers, https://262.ecma-international.org/13.0/#sec-additional-ecmascript-features-for-web-browsers, Accessed July 2022.
[^specApB]: "Appendix B: Additional ECMAScript Features for Web Browsers", ECMAScript 2022 Language Specification; https://262.ecma-international.org/13.0/#sec-additional-ecmascript-features-for-web-browsers ; Accessed July 2022
2 changes: 1 addition & 1 deletion objects-classes/ch3.md
Original file line number Diff line number Diff line change
Expand Up @@ -1384,4 +1384,4 @@ Admittedly, some bits of this example are a little contrived. But honestly, I th

By the way, there's probably a million different ways to structure the above code logic. I'm by no means claiming this is the *right* or *best* way to do so. As an exercise for the reader, try your hand and writing it yourself, and take note of things you did differently than my approach.

[^POLP]: *Principle of Least Privilege*, https://en.wikipedia.org/wiki/Principle_of_least_privilege, 15 July 2022.
[^POLP]: "Principle of Least Privilege", Wikipedia; https://en.wikipedia.org/wiki/Principle_of_least_privilege ; Accessed July 2022
2 changes: 1 addition & 1 deletion objects-classes/ch4.md
Original file line number Diff line number Diff line change
Expand Up @@ -1257,4 +1257,4 @@ The good news, perhaps, is that in practice you don't often trip over all these

The lesson here is that you should be intentional and aware of all aspects of `this` before you go sprinkling it about your code. Make sure you're using it most effectively and taking full advantage of this important pillar of JS.

[^globalThisPolyfill]: "A horrifying globalThis polyfill in universal JavaScript", Mathias Bynens, April 18 2019, https://mathiasbynens.be/notes/globalthis#robust-polyfill, Accessed July 2022.
[^globalThisPolyfill]: "A horrifying globalThis polyfill in universal JavaScript"; Mathias Bynens; April 18 2019; https://mathiasbynens.be/notes/globalthis#robust-polyfill ; Accessed July 2022
4 changes: 2 additions & 2 deletions objects-classes/ch5.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,6 @@ But in my opinion, the "cost" of avoiding virtual composition through delegation

In fact, I'd never advocate that style of code at all. If you want to avoid delegation, it's probably best to just stick to `class` style code, as seen in Chapter 3. As an exercise left to the reader, try to convert the earlier `ControlPoint` / `GuideLine` code snippets to use `class`.

[^TreatyOfOrlando]: "Treaty of Orlando"; Henry Lieberman, Lynn Andrea Stein, David Ungar; Oct 6, 1987; https://web.media.mit.edu/~lieber/Publications/Treaty-of-Orlando-Treaty-Text.pdf; PDF; Accessed July 2022
[^TreatyOfOrlando]: "Treaty of Orlando"; Henry Lieberman, Lynn Andrea Stein, David Ungar; Oct 6, 1987; https://web.media.mit.edu/~lieber/Publications/Treaty-of-Orlando-Treaty-Text.pdf ; PDF; Accessed July 2022

[^ClassVsPrototype]: "Classes vs. Prototypes, Some Philosophical and Historical Observations"; Antero Taivalsaari; Apr 22, 1996; https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.56.4713&rep=rep1&type=pdf; PDF; Accessed July 2022
[^ClassVsPrototype]: "Classes vs. Prototypes, Some Philosophical and Historical Observations"; Antero Taivalsaari; Apr 22, 1996; https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.56.4713&rep=rep1&type=pdf ; PDF; Accessed July 2022

0 comments on commit d1bb48a

Please sign in to comment.