Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit ae52762

Browse files
Update requirejs.md
1 parent 75cde7d commit ae52762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guides/v2.3/javascript-dev-guide/javascript/requirejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can also use the `map` configuration to override a JS module with a custom J
5252

5353
### paths {#requirejs-config-paths}
5454

55-
The `paths` configuration, similar to `map`, is used for aliasing not just any real AMD module that calls `define()`, but also any JS file (event from a URL), HTML templates, etc. Magento uses this to alias URLs and third party libraries.
55+
The `paths` configuration, similar to `map`, is used for aliasing not just any real AMD module that calls `define()`, but also any JS file (even from a URL), HTML templates, etc. Magento uses this to alias URLs and third party libraries.
5656

5757
```javascript
5858
paths: {
@@ -95,7 +95,7 @@ shim: {
9595

9696
### mixins {#requirejs-config-mixin}
9797

98-
The `mixins` configuration is used to overwrite component methods of an AMD module which returns either a UI component,a jQuery widget, or a JS object. Unlike the above configuration properties, the `mixins` property is under the `config` property, apart from the parent object called **config**.
98+
The `mixins` configuration is used to overwrite component methods of an AMD module which returns either a UI component, a jQuery widget, or a JS object. Unlike the above configuration properties, the `mixins` property is under the `config` property, apart from the parent object called **config**.
9999

100100
In this snippet, `Vendor_Module/js/module-mixin` will overwrite the existing component methods in `Vendor_Module/js/module` with the specified component methods. It is a convention to name the mixin by appending a `-mixin` to the original `path/to/js`, although not required.
101101

0 commit comments

Comments
 (0)