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

Commit e22a432

Browse files
authored
Merge pull request #3283 from bhargavmehta/master
Fixes #3118
2 parents 5f9a082 + 341ffe7 commit e22a432

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/v2.1/javascript-dev-guide/javascript/js-resources.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ JS resources are accessed using relative paths.
4141
**Example 1**
4242

4343
- File actual location: `app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js`
44-
- File published to `pub/static`: `pub/static/frontend/Magento/<theme>/<locale>/Magento_Configurable/js/configurable.js`. Here `<theme>` and `<locale>` are the currently applied in your instance {% glossarytooltip d2093e4a-2b71-48a3-99b7-b32af7158019 %}theme{% endglossarytooltip %} and {% glossarytooltip 05099dbb-d491-4e33-a065-16035cb2d4d9 %}locale{% endglossarytooltip %}.
44+
- File published to `pub/static`: `pub/static/frontend/Magento/<theme>/<locale>/Magento_ConfigurableProduct/js/configurable.js`. Here `<theme>` and `<locale>` are the currently applied in your instance {% glossarytooltip d2093e4a-2b71-48a3-99b7-b32af7158019 %}theme{% endglossarytooltip %} and {% glossarytooltip 05099dbb-d491-4e33-a065-16035cb2d4d9 %}locale{% endglossarytooltip %}.
4545
- Called in script:
4646
```javascript
4747
require(["Magento_ConfigurableProduct/js/configurable"], function(Configurable){
@@ -87,7 +87,7 @@ To build a dependency on the third-party plugin, specify a [shim] in the followi
8787
```
8888

8989
- `<third-party-plugin>.js`
90-
90+
9191
```javascript
9292
!(function($){
9393
// plugin code
@@ -110,14 +110,14 @@ To be available for the entire Magento instance, RequireJS library is included i
110110
<title>Magento Admin</title>
111111
<meta name="viewport" content="width=1024"/>
112112
<meta name="format-detection" content="telephone=no"/>
113-
<!-- Here's the library included -->
113+
<!-- Here's the library included -->
114114
<link src="requirejs/require.js"/>
115115
<css src="extjs/resources/css/ext-all.css"/>
116116
<css src="extjs/resources/css/ytheme-magento.css"/>
117117
</head>
118118
<body>
119119
<attribute name="id" value="html-body"/>
120-
<!-- Here's the basic configuration file require_js.phtml specified -->
120+
<!-- Here's the basic configuration file require_js.phtml specified -->
121121
<block name="require.js" class="Magento\Backend\Block\Page\RequireJs" template="Magento_Backend::page/js/require_js.phtml"/>
122122
<referenceContainer name="global.notices">
123123
<block class="Magento\Backend\Block\Page\Notices" name="global_notices" as="global_notices" template="page/notices.phtml"/>

0 commit comments

Comments
 (0)