Skip to content

Commit d6658be

Browse files
authored
Update README.md
Typos fixed
1 parent 6bd31c4 commit d6658be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

addons/van_dml/src/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ With VAN_DML, this can be rewritten:
4444
```
4545
begin() is "transparent", it just returns the DOM reference of the first child. This let´s you create functions like this:
4646
```JS
47-
const bdiv (...args) => begin(div(...args))
47+
const bdiv = (...args) => begin(div(...args))
4848

4949
bdiv() // Create a div and open for append
5050
h1()
@@ -61,7 +61,7 @@ begin(ID) can also digest Strings:
6161
6262
## end(n)
6363
64-
end() finishes the append mode and returns to the previous base. For each begin() there should be one call of end(). You can verify this by checking `SP()==0` (see below).
64+
end() finishes the append mode and returns to the previous base. For each begin() there should be one call of end(). You can verify this by checking `SP() === 0` (see below).
6565
If no base is selected (or the calls begin() and end() are balanced), auto-Append is disabled.
6666
6767
end(n) runs "end()" n times. May be convenient to return from deep nested functions.
@@ -84,17 +84,17 @@ To check your code, you can add this line to the end of Javascript:
8484
if (sp() !== 0) alert(`baseStack mismatch: stacksize ${sp()} at end of Javascript`)
8585
```
8686
87-
## CSS(s): create CSS-Defintions dynamically with Javascript
87+
## css(s): create CSS-Defintions dynamically with Javascript
8888
s can be
89-
- a string CSS(".myClass { color: red; }")
89+
- a string css(".myClass { color: red; }")
9090
- a template string with multiple rules
91-
CSS(`
91+
css(`
9292
.myClass { color: red; }
9393
.myClass: hover { color: green }
9494
`)
9595
- It can contain even template literals:
9696
let color = ["red","green","blue"]
97-
CSS(`
97+
css(`
9898
.myClass { color: ${mycolor[1]}; }
9999
`)
100-
Definitions with CSS() work like any other CSS you provide with static definitions, they just are added from within Javascript. This makes it easy to control CSS programmatically
100+
Definitions with css() work like any other CSS you provide with static definitions, they just are added from within Javascript. This makes it easy to control CSS programmatically

0 commit comments

Comments
 (0)