Skip to content

Commit bd39ce4

Browse files
committed
Move Switching profile down
1 parent d892ef5 commit bd39ce4

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

lib/components_guide_web/templates/web_standards/idempotent-javascript-operations.html.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -148,25 +148,6 @@ myList.remove(123);
148148

149149
----
150150

151-
## Switching profiles
152-
153-
```js
154-
const currentProfileID = null;
155-
const currentProfileChangeCount = 0;
156-
157-
function changeProfile(profileID) {
158-
currentProfileID = profileID;
159-
}
160-
161-
// currentProfileID: null
162-
changeProfile(123);
163-
// currentProfileID: 123
164-
changeProfile(123);
165-
// currentProfileID: 123
166-
```
167-
168-
----
169-
170151
## Searching
171152

172153
Before:
@@ -375,3 +356,24 @@ performSearch('stranger things');
375356
performSearch('russian doll');
376357
// Earlier requests are cancelled :)
377358
```
359+
360+
----
361+
362+
Draft: coming soon perhaps?
363+
364+
## Switching profiles
365+
366+
```js
367+
const currentProfileID = null;
368+
const currentProfileChangeCount = 0;
369+
370+
function changeProfile(profileID) {
371+
currentProfileID = profileID;
372+
}
373+
374+
// currentProfileID: null
375+
changeProfile(123);
376+
// currentProfileID: 123
377+
changeProfile(123);
378+
// currentProfileID: 123
379+
```

0 commit comments

Comments
 (0)