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

Commit ae68bf3

Browse files
authored
Merge pull request #4744 from matheusgontijo/patch-2
Replaced TABS for space for correct indentation.
2 parents 52039bd + e365c6d commit ae68bf3

File tree

1 file changed

+5
-5
lines changed
  • guides/v2.1/javascript-dev-guide/javascript

1 file changed

+5
-5
lines changed

guides/v2.1/javascript-dev-guide/javascript/js_init.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ To call a JS component on an HTML element without direct access to the element o
6767
<script type="text/x-magento-init">
6868
{
6969
// components initialized on the element defined by selector
70-
"<element_selector>": {
71-
"<js_component1>": ...,
72-
"<js_component2>": ...
70+
"<element_selector>": {
71+
"<js_component1>": ...,
72+
"<js_component2>": ...
7373
},
7474
// components initialized without binding to an element
7575
"*": {
@@ -139,8 +139,8 @@ $(function () { // to ensure that code evaluates on page load
139139
$('[data-role=example]') // we expect that page contains markup <tag data-role="example">..</tag>
140140
.accordion({ // now we can use "accordion" as jQuery plugin
141141
header: '[data-role=header]',
142-
content: '[data-role=content]',
143-
trigger: '[data-role=trigger]',
142+
content: '[data-role=content]',
143+
trigger: '[data-role=trigger]',
144144
ajaxUrlElement: 'a'
145145
});
146146
});

0 commit comments

Comments
 (0)