Skip to content

Commit 630ba5e

Browse files
committed
Update
1 parent b808ba4 commit 630ba5e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • src/overview/xml-capabilities

src/overview/xml-capabilities/jet.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ package com.fun.components {
3838
}
3939
```
4040

41-
If the style sheet is too large, it may be moved out of the ShockScript file using `Embed()`; for instance:
41+
If the style sheet is too large, it may be moved out of the ShockScript file; for instance:
4242

4343
```plain
4444
// CustomComponent.sx
@@ -47,9 +47,7 @@ package com.fun.components {
4747
public function CustomComponent() {
4848
return (
4949
<j:Button>
50-
<j:Style
51-
source={Embed("CustomComponent.css", static="text/plain")}
52-
color="yellow"/>
50+
<j:Style source="CustomComponent.css" color="yellow"/>
5351
Click me
5452
</j:Button>
5553
);
@@ -77,7 +75,7 @@ package com.fun.components {
7775
7876
return (
7977
<j:Button>
80-
<j:Style source={stylesheet}/>
78+
<j:Style extend={stylesheet}/>
8179
Click me
8280
</j:Button>
8381
);

0 commit comments

Comments
 (0)