Skip to content

Commit a0c6932

Browse files
committed
#6888 top level link: code blocks => readonly
1 parent ffbdeaa commit a0c6932

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

learn/guides/ConfigSystemDeepDive.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `set()` method is the public interface for changing one or more config prope
3737
`this.set({a: 1, b: 2})`, you kick off a carefully orchestrated sequence.
3838

3939
[[Source: core.Base.mjs](https://github.com/neomjs/neo/blob/dev/src/core/Base.mjs)]
40-
```javascript
40+
```javascript readonly
4141
// Simplified for clarity
4242
set(values={}) {
4343
let me = this;
@@ -72,7 +72,7 @@ This internal method iteratively processes the configs stored in `configSymbol`.
7272
function to handle the dynamic nature of config processing, where one `afterSet` might trigger another `set()`.
7373

7474
[[Source: core.Base.mjs](https://github.com/neomjs/neo/blob/dev/src/core/Base.mjs)]
75-
```javascript
75+
```javascript readonly
7676
// Simplified for clarity
7777
processConfigs(forceAssign=false) {
7878
let me = this,
@@ -110,7 +110,7 @@ processConfigs(forceAssign=false) {
110110
What happens when two `afterSet` methods depend on each other's properties?
111111

112112
Consider this common scenario:
113-
```javascript
113+
```javascript readonly
114114
class MyComponent extends Component {
115115
static config = {
116116
a_: 1,
@@ -184,7 +184,7 @@ config properties, `a` and `b`. A button allows the user to change `a` and `b` s
184184
The entire UI structure, including child components and event handlers, is defined within the `static config` block.
185185
This is the recommended approach as it makes the component's structure immediately clear.
186186

187-
```javascript
187+
```javascript readonly
188188
// From: Neo.examples.core.config.MainContainer
189189
import Panel from '../../../src/container/Panel.mjs';
190190
import Viewport from '../../../src/container/Viewport.mjs';

0 commit comments

Comments
 (0)