Skip to content

Commit

Permalink
Update RECIPES.md (#1291)
Browse files Browse the repository at this point in the history
Fix links to HTTPS to prevent redirects
Fix hierachical typo
  • Loading branch information
coliff authored and arv committed Oct 14, 2019
1 parent 3506ef2 commit c1e4dbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/RECIPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ names with the parent object. Here's an example:

```js
/**
* This method has hierachical params
* This method has hierarchical params
* @param {Object} animals different kinds of animals
* @param {String} animals.fishes number of kinds of fish
*/
Expand All @@ -113,8 +113,8 @@ explicit syntax is required.

## Object Factories

Libraries like [d3](http://d3js.org/) eschew JavaScript's `new` operator
in favor of the ['object factory' or 'module pattern'](http://www.macwright.org/2012/06/04/the-module-pattern.html).
Libraries like [d3](https://d3js.org) eschew JavaScript's `new` operator
in favor of the ['object factory' or 'module pattern'](https://macwright.org/2012/06/04/the-module-pattern.html).

The factory function is a normal function that yields an object. That object
has properties. In this case, we don't use the `@class` tag because
Expand Down

0 comments on commit c1e4dbe

Please sign in to comment.